메인 컨텐츠로 가기

Excel의 기준에 따라 고유 값을 추출하는 방법은 무엇입니까?

아래 스크린 샷과 같은 결과를 얻기 위해 열 A의 특정 기준에 따라 열 B의 고유 이름 만 나열하려는 왼쪽 데이터 범위가 있다고 가정합니다. Excel에서이 작업을 어떻게 빠르고 쉽게 처리 할 수 ​​있습니까?

배열 수식을 사용하여 기준에 따라 고유 한 값 추출

배열 수식을 사용하여 여러 기준에 따라 고유 한 값 추출

유용한 기능으로 셀 목록에서 고유 값 추출

 

배열 수식을 사용하여 기준에 따라 고유 한 값 추출

이 작업을 해결하려면 복잡한 배열 수식을 적용 할 수 있습니다. 다음과 같이하십시오.

1. 추출 결과를 나열하려는 빈 셀에 아래 수식을 입력하십시오.이 예에서는 E2 셀에 넣은 다음 쉬프트 + 컨트롤 + 엔터 첫 번째 고유 값을 가져 오는 키입니다.

=IFERROR(INDEX($B$2:$B$15, MATCH(0, IF($D$2=$A$2:$A$15, COUNTIF($E$1:$E1, $B$2:$B$15), ""), 0)),"")

2. 그런 다음 빈 셀이 표시 될 때까지 채우기 핸들을 셀로 드래그하면 이제 특정 기준에 따른 모든 고유 값이 나열됩니다. 스크린 샷을 참조하십시오.

참고 : 위의 공식에서 : B2 : B15 열 범위에는 추출하려는 고유 값이 포함됩니다. A2 : A15 열에 기반한 기준이 포함되어 있습니다. D2 기준으로 고유 한 값을 나열하려는 기준을 나타냅니다. E1 입력 한 수식 위의 셀입니다.

배열 수식을 사용하여 여러 기준에 따라 고유 한 값 추출

두 가지 조건을 기반으로 고유 한 값을 추출하려면 다음과 같은 다른 배열 수식이 도움이 될 수 있습니다. 다음과 같이하십시오.

1. 고유 값을 나열 할 빈 셀에 아래 수식을 입력합니다.이 예에서는 G2 셀에 입력 한 다음 쉬프트 + 컨트롤 + 엔터 첫 번째 고유 값을 가져 오는 키입니다.

=IFERROR(INDEX($C$2:$C$15,MATCH(0,COUNTIF(G1:$G$1,$C$2:$C$15)+IF($A$2:$A$15<>$E$2,1,0)+IF($B$2:$B$15<>$F$2,1,0),0)),"")

2. 그런 다음 빈 셀이 표시 될 때까지 채우기 핸들을 셀로 드래그하면 특정 두 조건을 기반으로 한 모든 고유 값이 나열됩니다. 스크린 샷을 참조하십시오.

참고 : 위의 공식에서 : C2 : C15 열 범위에는 추출하려는 고유 값이 포함됩니다. A2 : A15 E2 기준으로 고유 값을 추출하려는 기준이있는 첫 번째 범위입니다. B2 : B15F2 고유 값을 추출하려는 기준이있는 두 번째 범위입니다. G1 입력 한 수식 위의 셀입니다.

유용한 기능으로 셀 목록에서 고유 값 추출

때로는 셀 목록에서 고유 값을 추출하고 싶을 때 유용한 도구를 권장합니다.Excel 용 Kutools그와 고유 한 값으로 셀 추출 (첫 번째 중복 포함) 유틸리티를 사용하면 고유 한 값을 빠르게 추출 할 수 있습니다.

참고 :이것을 적용하려면 고유 한 값으로 셀 추출 (첫 번째 중복 포함), 먼저 Excel 용 Kutools을 클릭 한 다음 기능을 빠르고 쉽게 적용하십시오.

설치 후 Excel 용 Kutools, 다음과 같이하십시오.

1. 결과를 출력 할 셀을 클릭하십시오. (주의 사항: 첫 번째 행의 셀을 클릭하지 마십시오.)

2. 그런 다음 쿠툴 > 수식 도우미 > 수식 도우미, 스크린 샷 참조 :

3. 에서 수식 도우미 대화 상자에서 다음 작업을 수행하십시오.

  • 선택 본문 옵션에서 공식 타입 드롭 다운 목록;
  • 그런 다음 고유 한 값으로 셀 추출 (첫 번째 중복 포함) 인사말 fromula 선택 리스트 박스;
  • 오른쪽에서 인수 입력 섹션에서 고유 한 값을 추출 할 셀 목록을 선택하십시오.

4. 그런 다음 Ok 버튼을 클릭하면 첫 번째 결과가 셀에 표시되고 셀을 선택하고 빈 셀이 표시 될 때까지 모든 고유 값을 나열하려는 셀로 채우기 핸들을 드래그합니다. 스크린 샷을 참조하십시오.

지금 Excel 용 Kutools를 무료로 다운로드하십시오!


더 많은 관련 기사 :

  • 목록에서 고유하고 고유 한 값의 수 계산
  • 중복 된 항목이있는 긴 값 목록이 있다고 가정 해 보겠습니다. 이제 고유 한 값 (목록에 한 번만 표시되는 값) 또는 고유 한 값 (목록에있는 모든 다른 값은 고유함을 의미 함)의 수를 계산하려고합니다. 왼쪽 스크린 샷과 같이 열에 값 +1 번째 중복 값)이 표시됩니다. 이 기사에서는 Excel 에서이 작업을 처리하는 방법에 대해 설명합니다.
  • Excel의 기준에 따라 고유 값 합계
  • 예를 들어 다음 스크린 샷과 같이 Name 열을 기반으로 Order 열의 고유 값만 합산하기 위해 Name 및 Order 열을 포함하는 데이터 범위가 있습니다. Excel에서이 작업을 빠르고 쉽게 해결하는 방법은 무엇입니까?
  • 다른 열의 고유 한 값을 기준으로 한 열의 셀 전치
  • 두 개의 열을 포함하는 데이터 범위가 있다고 가정하면 다음 결과를 얻기 위해 한 열의 셀을 다른 열의 고유 값을 기반으로 가로 행으로 바꾸려고합니다. Excel에서이 문제를 해결할 좋은 아이디어가 있습니까?
  • Excel에서 고유 값 연결
  • 중복 데이터로 채워진 긴 값 목록이있는 경우 이제 고유 한 값만 찾은 다음 단일 셀로 연결하려고합니다. Excel에서이 문제를 어떻게 빠르고 쉽게 처리 할 수 ​​있습니까?

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (40)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you so much. This was very very helpful. You Rock!!
This comment was minimized by the moderator on the site
hi everyone..
i have problem..
i got blank result even i press ctrl shift enter together..
This comment was minimized by the moderator on the site
Hi all, Can some help me to get all unique values on one single cell
This comment was minimized by the moderator on the site
Hi, this worked well! Although it takes Excel sooooo long to calculate. Just dragging down 15 cells in a column takes about 15min to calculate... if not longer. Is this normal? If this becomes dynamic it will take a hell of alot of computing time.
This comment was minimized by the moderator on the site
Hello. This is really helpful, however, what If I want a formula that lists the unique values based on multiple criteria. eg. I have a data set which has the following data in a table (after each hyphen is a new column but same row):

Company A - £200 - £100
Company A - £300 - £200
Company B - £300 - £200
Company C - £600 - £200
Company B - £100 - £300
Company D - £0 - £600
Company A - £700 - £100

I want a new data table in a new tab which groups the duplicate values without using an array formula. currently I'm grouping using a pivot table and pasting to my new data table. It's a long process but array formulas make my spreadsheet really slow.

Company A - £1200 - £400
Company B - £400 - £500
Company C - £600 - £200
Company D - £0 - £600

Thanks,
K
This comment was minimized by the moderator on the site
Hello, K,
For solving your problem, I can recommend our useful tool- Kutools for Excel, with its Advanced Combine Rows feature, you can deal with this job quickly. Firstly, you should copy and paste your data into a new worksheet, and then apply htis feature as below screenhsot shown.
You can know more about this feature from: https://www.extendoffice.com/product/kutools-for-excel/excel-combine-duplicate-rows.html
Please download Kutools for Excel and install it, then apply this feature. Full feature free trial 30-day, please try.
This comment was minimized by the moderator on the site
Hi! the formula works really well. I would like to add another criterion, i mean, get the unique answers but using two criteria
This comment was minimized by the moderator on the site
Hi, Giancarlo,
to extract unique values based on multiple criteria, any of the below formula can help you: (after pasting the formula, please press Ctrl + Shift + Enter keys together.)
=IFERROR(INDEX($C$2:$C$11, MATCH(0, COUNTIF(G1:$G$1, $C$2:$C$11)+IF($A$2:$A$11<>$E$2, 1, 0)+IF($B$2:$B$11<>$F$2, 1, 0), 0)), "")
=INDEX($C$2:$C$11, MATCH(0, IF(($A$2:$A$11=$E$2)*($B$2:$B$11=$F$2), COUNTIF($G$1:$G1, $C$2:$C$11), ""), 0))
Please try, hope it can help you!
This comment was minimized by the moderator on the site
Hi. I am using the two conditions formula =IFERROR(INDEX($C$2:$C$11, MATCH(0, COUNTIF(G1:$G$1, $C$2:$C$11)+IF($A$2:$A$11<>$E$2, 1, 0)+IF($B$2:$B$11<>$F$2, 1, 0), 0)), "") to extract a unique list and it works great, but I am struggle to add the SMALL function to get the list sorted as well in ascending order. Are you able to help?
This comment was minimized by the moderator on the site
Is there a way to make this work while ALLOWING for duplicate values? For instance, I want all instances of Lucy to be listed in the results.
This comment was minimized by the moderator on the site
Hello, Konstantin,
To extract all corresponding values including the duplicates based on a specific cell criteria, the following array formula can help you, see screenshot:
=IF(ISERROR(INDEX($A$1:$B$17,SMALL(IF($A$1:$A$17=$D$2,ROW($A$1:$A$17)),ROW(1:1)),2)),"",
INDEX($A$1:$B$17,SMALL(IF($A$1:$A$17=$D$2,ROW($A$1:$A$17)),ROW(1:1)),2))

After inserting the formula, please press Shift + Ctrl + Enter keys together to get the correct result, and then drag the fill handle down to get all values.
Hope this can help you, thank you!
This comment was minimized by the moderator on the site
This has worked great for me with a specific lookup value. However, if I wanted to use a wildcard to look up partial values, how would I do that? For example, if I wanted to lookup all the names associated with KT?

I am using this function to look up cells that contain multiple text. For example if each product also had a sub-product within the same cell but I was only looking for names associated with the sub-product "elf".

KTE - elf
KTE- ball
KTE - piano
KTO - elf
KTO- ball
KTO - piano
This comment was minimized by the moderator on the site
For me the formula does not work. I press ctrl shift enter and i still get an error N/A. I would like to add that i prpared exaclty the same data as in tutorial. What is the reason it does not work?
This comment was minimized by the moderator on the site
How would I get this formula to return each of the duplicates instead of one of each of the names? For instance, in the example above, how would I get the results column (B:B) to return Lucy, Ruby, Anny, Jose, Lucy, Anny, Tom? I'm using this as a budget tool pulling to specific account summaries from a general ledger. However, several of the amounts and transaction descriptions are duplicates in the general ledger. Once the first of the duplicated values is pulled, no more of them get pulled.
This comment was minimized by the moderator on the site
Hi, Joe,
To extract all corresponding values based on a specific cell criteria, the following array formula can help you, see screenshot:
=IF(ISERROR(INDEX($A$1:$B$17,SMALL(IF($A$1:$A$17=$D$2,ROW($A$1:$A$17)),ROW(1:1)),2)),"",
INDEX($A$1:$B$17,SMALL(IF($A$1:$A$17=$D$2,ROW($A$1:$A$17)),ROW(1:1)),2))

After inserting the formula, please press Shift + Ctrl + Enter keys together to get the correct result, and then drag the fill handle down to get all values.
Hope this can help you, thank you!
This comment was minimized by the moderator on the site
Last Question: If I want the results column to return all values not associated with KTE or KTO (so, D:D would be Tom, Nocol, Lily, Angelina, Genna), how would I do that?
This comment was minimized by the moderator on the site
Ok, so it works in the master workbook. There is one exception that I haven't been able to determine the cause of: If the array (in my case, the general ledger that I had beginning in row 3) does not begin in Row 1, the returned values are incorrect. What causes this problem, and which term in the formula fixes it? Thanks again for your help with this!
This comment was minimized by the moderator on the site
So far so good. I'm able to duplicate the results in the test sheet, make changes to the array, and then correct the formula to account for the changes I've made. I plan to move this into the master sheet today and see how it works. Thanks for the help!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations