메인 컨텐츠로 가기

피벗 테이블에서 고유 값을 계산하는 방법은 무엇입니까?

기본적으로 일부 중복 값이 ​​포함 된 데이터 범위를 기반으로 피벗 테이블을 만들면 모든 레코드도 계산되지만 때로는 하나의 열을 기반으로 고유 한 값을 계산하여 올바른 값을 얻으려고합니다. 스크린 샷 결과. 이 기사에서는 피벗 테이블에서 고유 값을 계산하는 방법에 대해 설명합니다.

도우미 열을 사용하여 피벗 테이블의 고유 값 계산

Excel 2013 이상 버전의 값 필드 설정을 사용하여 피벗 테이블의 고유 값 계산


도우미 열을 사용하여 피벗 테이블의 고유 값 계산

Excel에서 고유 값을 식별하기 위해 도우미 열을 만들어야합니다. 다음 단계를 수행하십시오.

1. 데이터 외에 새 열에이 수식을 입력하십시오. =IF(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))>1,0,1) C2 셀에 넣은 다음 채우기 핸들을이 수식을 적용 할 범위 셀로 드래그하면 아래에 표시된 스크린 샷과 같이 고유 한 값이 식별됩니다.

2. 이제 피벗 테이블을 만들 수 있습니다. 도우미 열을 포함한 데이터 범위를 선택한 다음 끼워 넣다 > 피벗 테이블 > 피벗 테이블, 스크린 샷 참조 :

3. 그런 다음 피벗 테이블 만들기 대화 상자에서 피벗 테이블을 배치 할 새 워크 시트 또는 기존 워크 시트를 선택합니다 (스크린 샷 참조).

4. 딸깍 하는 소리 OK을 누른 다음 클래스 ~에 필드 행 레이블 상자를 클릭하고 돕는 사람 칼럼 ~에 필드 마케팅은: 상자를 클릭하면 고유 값을 계산하는 다음 피벗 테이블이 표시됩니다.


Excel 2013 이상 버전의 값 필드 설정을 사용하여 피벗 테이블의 고유 값 계산

Excel 2013 이상 버전에서는 새로운 고유 카운트 피벗 테이블에 기능이 추가되었으므로이 기능을 적용하여이 작업을 빠르고 쉽게 해결할 수 있습니다.

1. 데이터 범위를 선택하고 끼워 넣다 > 피벗 테이블,에 피벗 테이블 만들기 대화 상자에서 피벗 테이블을 배치 할 새 워크 시트 또는 기존 워크 시트를 선택하고 이 데이터를 데이터 모델에 추가 체크 박스, 스크린 샷 참조 :

2. 그런 다음 피벗 테이블 필드 창에서 클래스 ~에 필드 상자를 클릭하고 성함 ~에 필드 마케팅은: 상자, 스크린 샷 참조 :

3. 그런 다음 이름의 개수 드롭 다운 목록, 선택 값 필드 설정, 스크린 샷 참조 :

4. 에서 값 필드 설정 대화 상자에서 값 요약 기준 탭을 누른 다음 스크롤하여 고유 카운트 옵션, 스크린 샷 참조 :

5. 그런 다음 OK, 고유 값만 계산하는 피벗 테이블을 얻을 수 있습니다.

  • 주의 사항: 확인하면 이 데이터를 데이터 모델에 추가 에서 옵션 피벗 테이블 만들기 대화 상자, 계산 된 필드 기능이 비활성화됩니다.

더 많은 관련 피벗 테이블 문서 :

  • 여러 피벗 테이블에 동일한 필터 적용
  • 때로는 동일한 데이터 소스를 기반으로 여러 피벗 테이블을 만들 수 있으며 이제 하나의 피벗 테이블을 필터링하고 다른 피벗 테이블도 동일한 방식으로 필터링하기를 원합니다. 즉, 여러 피벗 테이블 필터를 한 번에 변경하려고합니다. 뛰어나다. 이 기사에서는 Excel 2010 이상 버전에서 새로운 기능인 슬라이서를 사용하는 방법에 대해 설명합니다.
  • Excel에서 피벗 테이블 범위 업데이트
  • 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 (28)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks ! Saved me a lot of hours, me and my friend !
This comment was minimized by the moderator on the site
My Excel dont have check box " Add this data to the Data Model"
So, What can i do?
This comment was minimized by the moderator on the site
It supports only . xlsx
I have faced with the same problem. Nodody mention this. Everyone talk about MS Excel, and nobody about file)))
This comment was minimized by the moderator on the site
Hello, Jay,
Which Excel version do you use? This option is only added for Excl 2013 and later versions. If you do not find this option, please apply the first method in this article.
https://www.extendoffice.com/documents/excel/2127-excel-pivot-table-count-unique-values.html#a1

Thank you!
This comment was minimized by the moderator on the site
Thank you so much !!!!!
This comment was minimized by the moderator on the site
I cannot edit after I save. Can yo tell me why?
This comment was minimized by the moderator on the site
sorry, this still doesn't provide a solution for me in excel 2010. You're =if(sumproduct() formula doesn't work. It misses the values for the if formula if you use it like you put it and it doesn't count unique values in my excel sheet if I add =if(>1,01;1;0)...
This comment was minimized by the moderator on the site
oh man... you saved me so so so much time !!!
thanks a lot !!!!
This comment was minimized by the moderator on the site
Distinct count Option not shown in summarize value by - Excel version 2013
This comment was minimized by the moderator on the site
Please verify that you have ticked the "Add this data to data model" check in the CreatePivot dialog box :)
This comment was minimized by the moderator on the site
I faced the same issue and then found the resolution.
Seems that it's available only when you tick the "Add this data to the Data Model" checkbox in the Create PivotTable dialog box.
Please try if that helps
This comment was minimized by the moderator on the site
same for me! Any suggestion?
This comment was minimized by the moderator on the site
These all work but only to an extent. I'm trying to find a solution for the issue with all of these. When I create a helper column and use the formula =IF(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))>1,0,1) I do indeed get the distinct count. But how do you resolve the issue were you need the pivot fields to include one of the lines of data where the formula gives a zero? I also tried using the Data Model and distinct count. This gives the correct count but when you double click the data to drill down you do not get the data specified in the pivot.
This comment was minimized by the moderator on the site
Amazing! thanks a tons - this worked for me on Excel 2016.
This comment was minimized by the moderator on the site
I don't see the Distinct Count under Summarize Value By tab. My "Add this data to the Data model" check box is also grey out. How can I change this setting?
This comment was minimized by the moderator on the site
Ran into the same issue... it is probably because the file you opened was as a csv. When I reopened my file as an excel file (either start a new one, copy+paste or save as), I have the functionality of adding to data model
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