Array Functions

이 범주에는 배열 함수가 포함됩니다.

배열이란?

배열은 스프레드시트에 있는 값이 포함된 셀의 연결된 범위입니다. 행 3개와 열 3개로 이루어진 정사각형 범위는 3X3 배열입니다.

A

B

C

D

E

1

7

31

33

2

95

17

2

3

5

10

50

4


사용 가능한 가장 작은 배열은 인접한 두 개의 셀을 가진 1X2 또는 2X1 배열입니다.

배열 수식이란?

셀 범위의 개별 값이 평가되는 수식을 배열 수식이라고 합니다. 배열 수식과 다른 수식 간의 차이점은 배열 수식의 경우 하나의 값이 아닌 여러 개의 값을 동시에 처리한다는 것입니다.

배열 수식은 여러 값을 처리할 수 있을 뿐만 아니라 여러 값을 구할 수도 있습니다. 배열 수식의 결과도 하나의 배열입니다.

To multiply the values in the individual cells by 10 in the above array, you do not need to apply a formula to each individual cell or value. Instead you just need to use a single array formula. Select a range of 3 x 3 cells on another part of the spreadsheet, enter the formula =10*A1:C3 and confirm this entry using the key combination Ctrl + Shift + Enter. The result is a 3 x 3 array in which the individual values in the cell range (A1:C3) are multiplied by a factor of 10.

곱셈 외에도 다른 연산자를 참조 범위(배열)에서 사용할 수 있습니다. LibreOffice Calc에서는 덧셈(+), 뺄셈(-), 곱셈(*), 나눗셈(/)을 추가하거나 지수(^), 연결(&) 및 다음 비교 연산자를 사용할 수 있습니다(=, <>, <, >, <=, >=). 이러한 연산자는 셀 범위의 각 개별 값에서 사용할 수 있으며 배열 수식이 입력된 경우 결과를 배열로 구합니다.

배열을 다루는 함수에서 비교연산자는 빈 셀을 일반 함수에서 다루는 것과 동일하게 다룹니다. 따라서 빈 셀은 0의 값을 가지거나 빈 문자열을 가지는 것으로 취급됩니다. 예를 들어 A1과 A2 셀이 비어있는 상황에서 {=A1:A2=""}{=A1:A2=0}은 모두 1열 2행의 배열안의 셀을 연산한 값을 TRUE로 반환할 것입니다.

배열 수식을 사용하는 경우

다른 값을 사용하여 계산을 반복해야 하는 경우 배열 수식을 사용합니다. 배열 수식을 사용하면 나중에 계산 방법을 변경하려는 경우 배열 수식을 업데이트하기만 하면 됩니다. 배열 수식을 추가하려면 전체 배열 범위를 선택한 다음 배열 수식에서 필요한 사항을 변경합니다.

또한 배열 수식은 메모리를 많이 사용하지 않으므로 여러 값을 계산해야 할 경우 공간을 절약할 수 있는 옵션입니다. 또한 여러 셀 범위를 계산에 포함할 수 있으므로 배열은 복잡한 계산을 수행하기 위한 필수 도구입니다. LibreOffice에는 배열을 위한 여러 가지 수학 함수가 있습니다(예: 두 배열을 곱할 수 있는 MMULT 함수 또는 두 배열의 스칼라 곱을 계산할 수 있는 SUMPRODUCT 함Number).

LibreOffice Calc에서 배열 수식 사용

Implicit intersection of array formulas

You can also create a "normal" formula in which the reference range, such as parameters, indicate an array formula. This formula is also known as "implicit intersection" of array formula. The result is obtained from the intersection of the reference range and the rows or columns in which the formula is found. If there is no intersection or if the range at the intersection covers several rows or columns, a #VALUE! error message appears. The following example illustrates this concept:

In the table above, place the array formula in D1:

{=A1:A3 + 100}

Cells D1, D2, D3 have values 107, 195, 105 respectively.

Insert the formula below in E2, do not enter as array formula.

=A1:A3 + 100

Cells E1 and E3 are empty, Cell E2 has value 195. This is the implicit intersection of array formulas.

Insert formula below in E4, as in E2.

=A1:A3 + 100

Cell E4 display #VALUE!. Row 4 is out of the range A1:A3 of the formula.

배열 수식 만들기

함수 마법사를 사용하여 배열 수식을 만들려면 결과가 배열로 구해지도록 매번 배열 확인란을 선택해야 합니다. 그렇지 않으면 계산하는 배열의 왼쪽 위 셀에 있는 값만 구해집니다.

If you enter the array formula directly into the cell, you must use the key combination Shift + Ctrl + Enter instead of the Enter key. Only then does the formula become an array formula.

note

LibreOffice Calc에서 배열 수식은 중괄호로 표시됩니다. 중괄호를 수동으로 입력한다고 해서 배열 수식이 만들어지는 것은 아닙니다.


warning

The cells in a results array are automatically protected against changes. However, you can edit, delete or copy the array formula by selecting the entire array cell range.


수식에서 인라인 배열 상수 사용

Calc는 수식 안에서의 인라인 행렬/배열 상수를 지원합니다. 인라인 배열은 중괄호 { }로 묶습니다. 요소는 숫자 (음수 포함), 논리 상수 (TRUE, FALSE), 또는 문자열이 될 수 있습니다. 상수가 아닌 표현식은 허용되지 않습니다. 배열은 하나 이상의 행과 열로 입력될 수 있습니다. 모든 행과 열은 반드시 같은 수의 요소로 구성되어야 합니다.

The column separator (separating elements in one row) and the row separator are language and locale dependent. But in this help content, the ';' semicolon and '|' pipe symbol are used to indicate the column and row separators, respectively. For example, in the English locale, the ',' comma is used as the column separator, while the ';' semicolon is used as the row separator.

tip

You can view and change the row and column separator in Tools - Options - Calc - Formula - Separators.


배열은 중첩될 수 없습니다.

예:

={1;2;3}

세 개의 숫자 1, 2, 3이 하나의 행으로 구성된 배열.

To enter this array constant, you select three cells in a row, then you type the formula ={1;2;3} using the curly braces and the semicolons, then press Ctrl + Shift + Enter.

={1;2;3|4;5;6}

각각 세 값이 포함된 두 행으로 구성된 배열.

={0;1;2|FALSE;TRUE;"two"}

혼합된 데이터 배열

=SIN({1;2;3})

배열 수식으로서 입력된 값은 인수 1, 2, 3에 대한 세 SIN 계산 결과를 표시합니다.

배열 수식 편집

  1. Select the cell range or array containing the array formula. To select the whole array, position the cell cursor inside the array range, then press Ctrl + /, where / is the division key on the numeric keypad.

  2. Either press F2 or position the cursor in the input line. Both of these actions let you edit the formula.

  3. After you have made changes, press Ctrl + Shift + Enter.

tip

배열의 개별 부분을 서식 설정할 수 있습니다. 예를 들어, 글꼴 색상을 변경할 수 있습니다. 이렇게 하려면 셀 범위를 선택한 다음 원하는 속성을 변경합니다.


Deleting Array Formulae

  1. Select the cell range or array containing the array formula. To select the whole array, position the cell cursor inside the array range, then press Ctrl + /, where / is the division key on the numeric keypad.

  2. Press Delete to delete the array contents, including the array formula, or press Backspace and this brings up the Delete Contents dialog box. Select Formula or Delete All and click OK.

배열 수식 복사

  1. 배열 수식이 포함된 셀 범위 또는 배열을 선택합니다.

  2. Either press F2 or position the cursor in the input line.

  3. Copy the formula into the input line by pressing Ctrl + C.

  4. Select a range of cells where you want to insert the array formula and either press F2 or position the cursor in the input line.

  5. Paste the formula by pressing Ctrl + V in the selected space and confirm it by pressing Ctrl + Shift + Enter. The selected range now contains the array formula.

배열 범위 조정

출력 배열을 편집하려면 다음 작업을 수행합니다.

  1. 배열 수식이 포함된 셀 범위 또는 배열을 선택합니다.

  2. 선택 영역 아래의 오른쪽에는 마우스로 범위를 확대하거나 축소하는 데 사용할 수 있는 작은 아이콘이 표시됩니다.

note

배열 범위를 조정할 때 배열 수식은 자동으로 조정되지 않습니다. 결과가 표시되는 범위만 변경됩니다.


By holding down the Ctrl key, you can create a copy of the array formula in the given range.

조건부 배열 계산

조건부 배열 계산은 IF() 또는 CHOOSE() 함수를 포함하는 배열이나 행렬 수식입니다. 수식의 조건 인수는 영역 참조 또는 행렬 결과입니다.

다음 예에서 {=IF(A1:A3>0;"yes";"no")} 수식의 >0 테스트가 A1:A3 범위에 있는 각 셀에 적용되며 결과가 해당 셀에 복사됩니다.

A

B (수식)

B(결과)

1

1

{=IF(A1:A3>0;"yes";"no")}

2

0

{=IF(A1:A3>0;"yes";"no")}

아니요

3

1

{=IF(A1:A3>0;"yes";"no")}


다음 함수는 강제 배열 처리를 제공합니다: CORREL, COVAR, FORECAST, FTEST, INTERCEPT, MDETERM, MINVERSE, MMULT, MODE, PEARSON, PROB, RSQ, SLOPE, STEYX, SUMPRODUCT, SUMX2MY2, SUMX2PY2, SUMXMY2, TTEST. 이러한 함수 중 하나를 호출할 때 영역 참조를 사용하면 함수는 배열 함수처럼 작동합니다. 다음 표에는 강제 배열 처리의 예가 나와 있습니다.

A

B (수식)

B(결과)

C (강제 배열 수식)

C (결과)

1

1

=A1:A2+1

2

SUMPRODUCT(A1:A2+1)

5

2

2

=A1:A2+1

3

SUMPRODUCT(A1:A2+1)

5

3

=A1:A2+1

SUMPRODUCT(A1:A2+1)

5


FREQUENCY

Indicates the frequency distribution in a one-column-array. The function counts the number of values in the Data array that are within the values given by the Classes array.

구문

FREQUENCY(데이터; 클래스)

데이터는 계산할 값의 참조를 나타냅니다.

클래스는 제한값의 배열을 나타냅니다.

note

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.


note

이 페이지의 위에서 배열 함수에 대한 일반적인 소개를 확인할 수 있습니다.


예제

다음 테이블에서 열 A는 정렬되지 않은 측정값을 나열합니다. 열 B는 열 A의 데이터를 나눌 때 사용할 클래스에 대해 입력한 상한값을 포함합니다. B1에 입력한 상한값에 따라 FREQUENCY 함수는 5보다 작거나 같은 측정값 수를 구합니다. B2의 상한값이 10이기 때문에 FREQUENCY 함수는 5보다 크거나 10보다 크거나 같은 측정값 수를 두 번째 결과로 구합니다. B6에 입력한 ">25" 텍스트는 참조용으로만 사용됩니다.

A

B

C

1

12

5

1

2

8

10

3

3

24

15

2

4

11

20

3

5

5

25

1

6

20

>25

1

7

16

8

9

9

7

10

16

11

33


클래스 상한값보다 큰 값에 대한 빈도를 입력할 단일 열 범위를 선택합니다. 클래스 상한값보다 하나 더 많은 필드를 선택해야 합니다. 이 예에서는 범위 C1:C6을 선택합니다. 함수 마법사에서 FREQUENCY 함수를 호출합니다. (A1:A11)에서 데이터 범위를 선택한 다음, 클래스 제한값(B1:B6)을 입력한 클래스 범위를 선택합니다. 배열 확인란을 선택하고 확인을 클릭합니다. 범위 C1:C6의 빈도 수가 표시됩니다.

More explanations on top of this page.

GROWTH

배열의 지수 추세점을 계산합니다.

구문

GROWTH(DataY [; [ DataX ] [; [ NewDataX ] [; FunctionType ] ] ])

DataY는 Y데이터 배열을 의미합니다.

DataX(선택)는 X 데이터 배열을 나타냅니다.

NewDataX는 입력 선택사항이며 값이 다시 계산될 X데이터의 배열을 의미합니다.

FunctionType (optional). If FunctionType = 0, functions in the form y = m^x will be calculated. Otherwise, y = b*m^x functions will be calculated.

In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no parameter follows. For example, in a function with four parameters, where the last two parameters are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave out parameter 3 alone.

More explanations on top of this page.

예제

This function returns an array and is handled in the same way as the other array functions. Select a range where you want the answers to appear and select the function. Select DataY. Enter any other parameters, mark Array and click OK.

LINEST

데이터 집합에 가장 적합한 직선에 대한 통계표를 반환합니다.

구문

LINEST(data_Y [; data_X [; linearType [; stats]]])

데이터Y 는 데이터 점들의 집합에서 y 좌표를 지정하는 하나의 행이나 열 범위입니다.

데이터X 는 대응하는 x 좌표를 지정하는 하나의 행이나 열 범위입니다. 데이터X 가 생략되면, 기본적으로 1, 2, 3, ..., n 가 됩니다. . 만약 변수의 집합이 하나 초과로 있으면, 데이터X 는 대응하는 여러 개의 행 혹은 열의 범위가 될 수 있습니다.

LINEST 는 데이터에 가장 적합한 직선 y = a + bx 을 찾습니다., using linear regression (the "least squares" method). With more than one set of variables the straight line is of the form y = a + b1x1 + b2x2 ... + bnxn.

If linearType is FALSE the straight line found is forced to pass through the origin (the constant a is zero; y = bx). If omitted, linearType defaults to TRUE (the line is not forced through the origin).

If stats is omitted or FALSE only the top line of the statistics table is returned. If TRUE the entire table is returned.

LINEST returns a table (array) of statistics as below and must be entered as an array formula (for example by using Ctrl + Shift + Return rather than just Return).

In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no parameter follows. For example, in a function with four parameters, where the last two parameters are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave out parameter 3 alone.

More explanations on top of this page.

예제

이 함수는 배열을 반환하며, 다른 배열 함수를 취급하는 것과 같은 방식으로 취급됩니다. 답을 구하기 위한 범위를 정하고 함수를 선택합니다. 데이터Y 를 선택합니다. 원한다면 다른 매개 변수를 입력합니다. 배열을 선택한 후 OK 를 클릭합니다.

Stats가 0일 경우 반환되는 값은 회귀곡선의 기울기와 Y 절편의 값만을 보여줄 것입니다. Stats가 0이 아닐 경우 다른 값이 표시됩니다.

다른 LINEST 결과:

다음 예를 검사합니다.

A

B

C

D

E

F

G

1

x1

x2

y

잔존 가치

2

4

7

100

4,17

-3,48

82,33

3

5

9

105

5,46

10,96

9,35

4

6

11

104

0,87

5,06

#NA

5

7

12

108

13,21

4

#NA

6

8

15

111

675,45

102,26

#NA

7

9

17

120

8

10

19

133


열 A는 여러 X1 값을, 열 B는 여러 X2 값을, 열 C는 여러 Y 값을 포함합니다. 이러한 값은 이미 스프레드시트에 입력되어 있습니다. 이제 스프레드시트에서 E2:G6을 설정하고 함수 마법사를 활성화했습니다. LINEST 함수를 작동하려면 Array 확인란을 함수 마법사에서 표시한 상태여야 합니다. 이어서 다음 값을 스프레드시트에서 선택하거나 키보드를 사용하여 입력합니다.

데이터Y는 C2:C8입니다.

데이터X는 A2:B8입니다.

LinearTypeStats는 모두 1로 지정되어 있습니다.

확인을 클릭하자마자 LibreOffice Calc는 예에 나온 것처럼 LINEST 값을 사용하여 위 예를 채웁니다.

The formula in the Formula bar corresponds to each cell of the LINEST array {=LINEST(C2:C8;A2:B8;1;1)}.

계산된 LINEST 값을 나타냅니다.

E2와 F2 셀은 x1과 x2의 회귀곡선 방정식 y=b+m*x의 기울기가 역순으로 기록됩니다. 다시말해 E2 셀은 회귀방정식 x2의 기울기가 저장되고, F2 셀에는 x1의 기울기가 저장됩니다.

G2: y 축과의 교차점 b입니다.

E3 및 F3: 기울기 값의 표준 오차입니다.

G3: 절편의 표준 오차입니다.

E4: RSQ

F4: Y 값에 대해 계산된 회귀의 표준 오차입니다.

E5: 분산 분석의 F 값입니다.

F5: 분산 분석의 자유도입니다.

E6: 선형 평균의 예상 Y 값에 대한 제곱 편차의 합계입니다.

F6: 주어진 Y 값의 예상 Y 값에 대한 제곱 편차의 합계입니다.

More explanations on top of this page.

LOGEST

이 함수는 입력한 데이터의 조정을 지수 회귀 곡선으로 계산합니다(y=b*m^x).

구문

LOGEST(DataY [; DataX [; FunctionType [; Stats]]])

DataY는 Y데이터 배열을 의미합니다.

DataX(선택)는 X 데이터 배열을 나타냅니다.

함수형은 선택입력사항입니다. 만일 함수형이 0일 경우에는 y = m^x 식이 적용되어 계산이 수행되며, 이외의 경우에는 y = b*m^x 수식으로 계산이 수행될 것입니다.

Stats (옵션). Stats=0이면 회귀 계수만 계산됩니다.

In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no parameter follows. For example, in a function with four parameters, where the last two parameters are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave out parameter 3 alone.

More explanations on top of this page.

예제

LINEST를 참조하십시오. 단, 제곱 합이 구해지지 않습니다.

MDETERM

배열의 배열 배열식을 구합니다. 이 함수는 현재 셀에 값을 구하므로 결과의 범위를 지정할 필요가 없습니다.

구문

MDETERM(배열)

배열은 배열식이 지정되는 정사각형 배열을 나타냅니다.

note

이 페이지의 위에서 배열 함수 사용에 대한 일반적인 소개를 확인할 수 있습니다.


More explanations on top of this page.

MINVERSE

역 배열을 구합니다.

구문

MINVERSE(배열)

배열은 반전되는 정사각형 배열을 나타냅니다.

More explanations on top of this page.

예제

정사각형 범위를 선택하고 MINVERSE를 선택합니다. 출력 배열을 선택하고 배열 필드를 선택한 다음 확인을 클릭합니다.

MMULT

두 배열의 배열 곱을 계산합니다. 배열 1의 열 수는 배열 2의 행 수와 일치해야 합니다. 정사각형 배열은 같은 수의 행과 열을 가집니다.

구문

MMULT(Array 1; Array 2)

Array 1 represents the first array used in the array product.

Array 2 represents the second array with the same number of rows.

note

More explanations on top of this page.


예제

Select a square range. Choose the MMULT function. Select Array 1, then select Array 2. Using the Function Wizard, mark the Array check box. Click OK. The output array will appear in the first selected range.

MUNIT

일정한 크기의 단일 정사각형 배열을 구합니다. 이 단일 배열은 기본 대각선 요소가 1이고 다른 모든 배열 요소가 0인 정사각형 배열입니다.

구문

MUNIT(Dimensions)

치수는 배열 단위의 크기를 나타냅니다.

note

이 페이지의 위에서 배열 함수에 대한 일반적인 소개를 확인할 수 있습니다.


예제

스프레드시트에서 정사각형 범위(예: A1에서 E5까지)를 선택합니다.

범위를 선택 취소하지 않고 MUNIT 함수를 선택합니다. 배열 체크박스에 표시하고 원하는 배열의 차원수를 입력한 후(이 경우 5) OK 단추를 클릭합니다.

You can also enter the =MUNIT(5) formula in the last cell of the selected range (E5), and press Shift + Ctrl + Enter.

이제 A1:E5 범위를 가진 단위 배열이 표시됩니다.

More explanations on top of this page.

SUMPRODUCT

주어진 배열에서 해당 요소를 곱하고 이러한 곱의 합계를 구합니다.

구문

SUMPRODUCT(Array 1[; Array 2;][...;[Array 255]])

Array 1[; Array 2;][...;[Array 255]] represent arrays whose corresponding elements are to be multiplied.

At least one array must be part of the argument list. If only one array is given, all array elements are summed. If more than one array is given, they must all be the same size.

예제

A

B

C

D

1

2

3

4

5

2

6

7

8

9

3

10

11

12

13


=SUMPRODUCT(A1:B3;C1:D3)는 397을 반환합니다.

계산: A1*C1 + B1*D1 + A2*C2 + B2*D2 + A3*C3 + B3*D3

SUMPRODUCT를 사용하여 두 벡터의 스칼라 곱을 계산할 수 있습니다.

note

SUMPRODUCT는 단일 숫자를 구하며 배열 함수로 입력할 필요가 없습니다.


More explanations on top of this page.

SUMX2MY2

두 배열에 있는 해당 값의 제곱 차이에 대한 합계를 구합니다.

구문

SUMX2MY2(배열X; 배열Y)

배열X는 각각의 원소를 제곱한 후 더할 배열을 의미합니다.

배열Y는 각각의 원소를 제곱한 후 뺄 배열을 의미합니다.

More explanations on top of this page.

SUMX2PY2

두 배열에 있는 해당 값의 제곱 합에 대한 합계를 구합니다.

구문

SUMX2PY2(배열X; 배열Y)

배열X는 각각의 원소를 제곱한 후 더할 배열을 의미합니다.

배열Y는 각각의 원소를 제곱한 후 더할 두번째 배열을 의미합니다.

More explanations on top of this page.

SUMXMY2

두 배열에 있는 해당 값 사이의 분산 제곱을 추가합니다.

구문

SUMXMY2(배열X; 배열Y)

배열X는 그 변수들이 빼진 후 제곱될 첫번째 배열을 의미합니다.

배열Y는 그 변수들이 빼진 후 제곱될 두번째 배열을 의미합니다.

More explanations on top of this page.

TRANSPOSE

배열의 행과 열을 바꿉니다.

구문

TRANSPOSE(배열)

배열은 바꾸려는 스프레드시트의 배열을 나타냅니다.

note

이 페이지의 위에서 배열 함수 사용에 대한 일반적인 소개를 확인할 수 있습니다.


예제

In the spreadsheet, select the range in which the transposed array can appear. If the original array has n rows and m columns, your selected range must have at least m rows and n columns. Then enter the formula directly, select the original array and press Shift + Ctrl + Enter. Or, if you are using the Function Wizard, mark the Array check box. The transposed array appears in the selected target range and is protected automatically against changes.

A

B

C

D

1

2

3

4

5

2

6

7

8

9


The above table is 2 rows, 4 columns. In order to transpose it, you must select 4 rows, 2 columns. Assuming you want to transpose the above table to the range A7:B10 (4 rows, 2 columns) you must select the entire range and then enter the following:

TRANSPOSE(A1:D2)

Then make sure to enter it as matrix formula with Shift + Ctrl + Enter. The result will be as follows:

A

B

7

2

6

8

3

7

9

4

8

10

5

9


TREND

선형 추세와 함께 값을 구합니다.

구문

TREND(DataY [; DataX [; NewDataX [; LinearType]]])

DataY는 Y데이터 배열을 의미합니다.

DataX(선택)는 X 데이터 배열을 나타냅니다.

NewDataX는 입력 선택사항이며 값을 다시 계산할 때 이용됩니다.

LinearType (optional). If LinearType = 0, then lines will be calculated through the zero point. Otherwise, offset lines will also be calculated. The default is LinearType <> 0.

In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no parameter follows. For example, in a function with four parameters, where the last two parameters are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave out parameter 3 alone.

More explanations on top of this page.

예제

Select a spreadsheet range in which the trend data will appear. Select the function. Enter the output data or select it with the mouse. Mark the Array field, click OK. The trend data calculated from the output data is displayed.

Please support us!