본문 바로가기
IT Develop/엑셀(EXCEL)

[엑셀 함수]MATCH(매치) 및 INDEX(인덱스) 기능을 사용하는 방법.

by K-popcorn 2023. 4. 12.
반응형

Excel은 데이터를 관리하고 분석하는 강력한 도구입니다.

Excel에서 가장 유용한 두 가지 기능은 MATCH와 INDEX 기능입니다. 이러한 함수는 셀 범위 내에서 특정 값을 찾는 데 사용되므로 대량의 데이터로 작업하기가 더 쉽습니다. 이 블로그에서는 MATCH 및 INDEX 기능을 Excel에서 사용하는 방법에 대해 알아보겠습니다.



MATCH

매치 함수
MATCH 함수


MATCH 기능은 셀 범위 내에서 특정 값의 위치를 찾는 데 사용됩니다. MATCH 기능의 구문은 다음과 같습니다:
=MATCH(lookup_value, lookup_array, [match_type])
lookup_value는 검색할 셀 범위인 lookup_array에서 찾을 값입니다. match_type은 선택 사항이지만 수행할 일치 유형을 지정합니다. match_type은 0, 1 또는 -1일 수 있습니다.
match_type 0(정확한 일치)은 정확한 일치의 위치를 반환합니다. match_type 1(일치하는 값보다 작거나 같음)은 lookup_value보다 작거나 같은 가장 큰 값의 위치를 반환합니다. match_type of -1(일치하는 것보다 크거나 같음)은 lookup_value보다 크거나 같은 가장 작은 값의 위치를 반환합니다.
예: 두 개의 열에 이름과 해당 연령의 목록이 있다고 가정합니다. 우리는 특정인의 나이 위치를 찾고 싶습니다. MATCH 기능을 사용하여 연령의 위치를 찾을 수 있습니다. 공식은 다음과 같습니다:
=MATCH("John", A1:A10, 0)
이 공식은 A1 범위에서 요한의 나이 위치를 반환합니다:답 10.


 


INDEX

인덱스 함수
INDEX 함수


INDEX 기능은 셀 범위 내의 특정 위치에서 값을 반환하는 데 사용됩니다. INDEX 함수의 구문은 다음과 같습니다:
=INDEX(array, row_num, [column_num])
배열은 검색할 셀 범위입니다. row_num은 반환할 값의 행 번호이고 columnn_num은 반환할 값의 열 번호입니다. 범위가 1차원인 경우 columnn_num은 선택 사항입니다.


예: 앞의 예와 동일한 이름과 나이의 목록을 가지고 있고 특정 사람의 나이를 찾고 싶다고 가정합니다. 우리는 INDEX 기능을 사용하여 그 사람의 나이를 찾을 수 있습니다. 공식은 다음과 같습니다:
=INDEX(B1:B10, MATCH("John", A1:A10, 0))

INDEX MATCH 인덱스 매치 함수
INDEX MATCH 인덱스 매치 함수


이 공식은 먼저 MATCH 함수를 사용하여 A1 범위에서 존의 나이 위치를 찾습니다:A10. 그런 다음 B1:B10 범위에서 동일한 위치에 있는 연령 값을 반환합니다.

 


MATCH 및 INDEX 기능 조합:
MATCH 함수와 INDEX 함수를 결합하여 2차원 배열에서 값을 찾을 수 있습니다. 공식은 다음과 같습니다:
=INDEX(array, MATCH(lookup_value, lookup_array, 0), MATCH(lookup_value_2, lookup_array_2, 0)


이 공식에서 배열은 검색할 셀 범위입니다. lookup_value 및 lookup_array는 배열에서 찾으려는 값입니다. lookup_value_2 및 lookup_array_2는 lookup_value와 동일한 행 또는 열에서 찾으려는 값입니다.

예: 서로 다른 제품 및 지역에 대한 판매 데이터 표가 있고 특정 제품 및 지역에 대한 판매를 찾고 싶다고 가정합니다. MATCH 및 INDEX 기능을 사용하여 제품 및 지역의 매출을 찾을 수 있습니다. 공식은 다음과 같습니다:
=INDEX(C2:E6, MATCH("제품 1", B2:B6, 0), MATCH("지역 1", C1:E1, 0)

인덱스 매치 함수 INDEX MATCH

 

 

(Eng Ver.)

Excel is a powerful tool for managing and analyzing data. Two of the most useful functions in Excel are the MATCH and INDEX functions. These functions are used to find specific values within a range of cells, making it easier to work with large amounts of data. In this blog, we will explore how to use the MATCH and INDEX functions in Excel.


MATCH 

MATCH FUNCTION

The MATCH function is used to find the position of a specific value within a range of cells. The syntax for the MATCH function is:

=MATCH(lookup_value, lookup_array, [match_type])

The lookup_value is the value you want to find in the lookup_array, which is the range of cells you want to search in. The match_type is optional, but it specifies the type of match you want to perform. The match_type can be 0, 1, or -1.

The match_type of 0 (exact match) returns the position of the exact match. The match_type of 1 (less than or equal to match) returns the position of the largest value that is less than or equal to the lookup_value. The match_type of -1 (greater than or equal to match) returns the position of the smallest value that is greater than or equal to the lookup_value.

Example: Suppose we have a list of names and their corresponding ages in two columns. We want to find the position of the age of a specific person. We can use the MATCH function to find the position of the age. The formula would be:

=MATCH("John", A1:A10, 0)

This formula would return the position of the age of John in the range A1:A10.


INDEX

INDEX FUNCTION
INDEX FUNCTION

The INDEX function is used to return a value from a specific position within a range of cells. The syntax for the INDEX function is:

=INDEX(array, row_num, [column_num])

The array is the range of cells you want to search in. The row_num is the row number of the value you want to return, and the column_num is the column number of the value you want to return. The column_num is optional if the range is one-dimensional.

Example: Suppose we have the same list of names and ages as in the previous example, and we want to find the age of a specific person. We can use the INDEX function to find the age of the person. The formula would be:

=INDEX(B1:B10, MATCH("John", A1:A10, 0))

This formula would first use the MATCH function to find the position of the age of John in the range A1:A10. It would then return the value of the age in the same position in the range B1:B10.

Combining MATCH and INDEX Functions:

We can combine the MATCH and INDEX functions to find a value in a two-dimensional array. The formula would be:

=INDEX(array, MATCH(lookup_value, lookup_array, 0), MATCH(lookup_value_2, lookup_array_2, 0))

In this formula, the array is the range of cells you want to search in. The lookup_value and lookup_array are the values you want to find in the array. The lookup_value_2 and lookup_array_2 are the values you want to find in the same row or column as the lookup_value.

Example: Suppose we have a table of sales data for different products and regions, and we want to find the sales for a specific product and region. We can use the MATCH and INDEX functions to find the sales for the product and region. The formula would be:

=INDEX(C2:E6, MATCH("Product 1", B2:B6, 0), MATCH("Region 1", C1:E1, 0))

This formula would first use the MATCH

반응형

댓글