메인 컨텐츠로 가기

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

예를 들어 다음 스크린 샷과 같이 Name 열을 기반으로 Order 열의 고유 값만 합산하기 위해 Name 및 Order 열을 포함하는 데이터 범위가 있습니다. Excel에서이 작업을 빠르고 쉽게 해결하는 방법은 무엇입니까?

배열 수식을 사용하여 하나 이상의 기준에 따라 고유 값 합계


배열 수식을 사용하여 하나 이상의 기준에 따라 고유 값 합계

다른 열의 기준에 따라 고유 한 값만 합하려면 아래 공식을 사용하세요.

1. 다음 배열 수식을 빈 셀에 복사하거나 입력하십시오.

=SUM(IF(FREQUENCY(IF($A$2:$A$12=D2,MATCH($B$2:$B$12,$B$2:$B$12,0)),ROW($B$2:$B$12)-ROW($B$2)+1),$B$2:$B$12))

주의 사항: 위의 공식에서 A2 : A12 열 데이터에 조건 값이 포함되어 있습니다. D2 값을 합산하려는 조건입니다. B2 : B12 합계하려는 값이 포함 된 열입니다.

2. 그런 다음, Ctrl + Shift + Enter 키를 함께 사용하여 첫 번째 총계 결과를 얻은 다음이 수식 셀을 선택하고 채우기 핸들을 셀까지 끌어서 각 항목에 대한 모든 총계 값을 가져옵니다. 스크린 샷보기 :

방문 꿀팁: 두 가지 기준에 따라 모든 고유 값을 합산해야하는 경우 아래 공식을 적용하세요.

=SUM(IF(FREQUENCY(IF($A$2:$A$12=E2,IF($B$2:$B$12=F2,MATCH($C$2:$C$12,$C$2:$C$12,0))),ROW($C$2:$C$12)-ROW($C$2)+1),$C$2:$C$12))


더 많은 관련 기사 :

  • Excel의 단일 기준을 기반으로 여러 열 합계
  • Excel에서는 항상 하나의 기준에 따라 여러 열을 합산해야 할 수 있습니다. 예를 들어 다음 스크린 샷과 같은 데이터 범위가 있는데, 이제 XNUMX 월, XNUMX 월, XNUMX 월의 XNUMX 개월 동안 KTE의 총 가치를 얻고 싶습니다.
  • Excel의 행 또는 열에서 Vlookup 및 Sum 일치
  • vlookup 및 sum 함수를 사용하면 지정된 기준을 빠르게 찾고 동시에 해당 값을 합산 할 수 있습니다. 이 기사에서는 Excel의 행 또는 열에서 일치하는 첫 번째 또는 모든 값을 vlookup하고 합계하는 두 가지 방법을 보여줍니다.
  • Excel에서 월 및 연도를 기준으로 값 합계
  • 데이터 범위가있는 경우 A 열에는 일부 날짜가 있고 B 열에는 주문 수가 있습니다. 이제 다른 열에서 월과 연도를 기준으로 숫자를 합산해야합니다. 이 경우 2016 년 XNUMX 월 총 주문량을 계산하여 다음과 같은 결과를 얻고 싶습니다. 이 기사에서는 Excel 에서이 작업을 해결하는 몇 가지 트릭에 대해 설명합니다.
  • Excel의 텍스트 기준에 따라 합계 값
  • Excel에서 다른 텍스트 기준 열을 기준으로 값을 합산 해 본 적이 있습니까? 예를 들어, 다음 스크린 샷과 같이 워크 시트에 데이터 범위가 있습니다. 이제 A 열의 텍스트 값에 해당하는 B 열의 모든 숫자를 합산하여 특정 기준을 충족합니다. A 열의 셀에는 KTE가 있습니다.
  • Excel에서 드롭 다운 목록 선택을 기반으로 값 합계
  • 아래 스크린 샷과 같이 범주 열과 금액 열이 포함 된 테이블이 있고 모든 범주가 ​​포함 된 데이터 유효성 검사 드롭 다운 목록을 만들었습니다. 드롭 다운 목록에서 모든 종류의 범주를 선택할 때 B 열의 모든 해당 셀 값을 합산하고 결과를 지정된 셀에 채우려 고합니다. 예를 들어 드롭 다운 목록에서 범주 CC를 선택할 때 B5 및 B8 셀의 값을 합산하고 총 수 40 + 70 = 110을 가져와야합니다. 그것을 달성하는 방법? 이 기사의 방법이 도움이 될 수 있습니다.

  • 슈퍼 포뮬러 바 (여러 줄의 텍스트와 수식을 쉽게 편집 할 수 있습니다.) 레이아웃 읽기 (많은 수의 셀을 쉽게 읽고 편집합니다.) 필터링 된 범위에 붙여 넣기...
  • 셀 / 행 / 열 병합 및 데이터 보관; 셀 내용 분할; 중복 행과 합계 / 평균 결합... 중복 셀 방지; 범위 비교...
  • 중복 또는 고유 선택 행; 빈 행 선택 (모든 셀이 비어 있음); 슈퍼 찾기 및 퍼지 찾기 많은 통합 문서에서; 무작위 선택 ...
  • 정확한 사본 수식 참조를 변경하지 않고 여러 셀; 참조 자동 생성 여러 시트에; 글 머리 기호 삽입, 확인란 등 ...
  • 즐겨 찾기 및 빠른 수식 삽입, 범위, 차트 및 그림; 셀 암호화 암호로; 메일 링리스트 생성 이메일 보내기 ...
  • 텍스트 추출, 텍스트 추가, 위치 별 제거, 공간 제거; 페이징 부분합을 만들고 인쇄합니다. 셀 내용과 주석 간 변환...
  • 슈퍼 필터 (다른 시트에 필터 구성표 저장 및 적용) 고급 정렬 월 / 주 / 일, 빈도 등 특수 필터 굵은 기울임 꼴로 ...
  • 통합 문서와 워크 시트 결합; 키 열을 기반으로 테이블 병합; 데이터를 여러 시트로 분할; xls, xlsx 및 PDF 일괄 변환...
  • 피벗 테이블 그룹화 기준 주 번호, 요일 등 ... 잠금 해제되고 잠긴 셀 표시 다른 색상으로; 수식 / 이름이있는 셀 강조 표시...
kte 탭 201905
  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
officetab 하단
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have column "A" listed with various Part nos. Say 50 parts. Each of these 50 parts will be repeated more than once. I column B where in for each of these part nos stock qty say for particular part no 1000 is the qty. This 1000 Qty is shown againt that particular part no in whichever cell it comes in column 'A".

The problem i am facing is sum total of column B is not correct as stock qty is shown n-number of times that particular part finds place in column A.

How do i avoid totaling up this repeated stock qty of one unique part. Say part no P1001 stock is 1000nos. If delivery date of this part P1001 is

Part no..Date.............Qty......Stock
P1001....05-10-22 .....150......1000
P1001....06-10-22......200.....1000
P1001....07-10-22.......250.....1000

in the above table stock is only 1000 but it shows against each delivery date the same stock qty. But when i want to sum the total stock of all part nos it should not take 1000 3 times but only 1 time. How do this?
This comment was minimized by the moderator on the site
Hello, Pugazh
Did you want to sum only the unique stock based on the part number?
Or you can give your problem as a creenshot here, so that, we can understand more clearly.
Thank you!
This comment was minimized by the moderator on the site
Hi,

I was wondering if there was a formula for three criteria? Or if there's a process/logic to follow for more than two criteria ?

Many thanks,
Gus
This comment was minimized by the moderator on the site
Hello, Gus,
If there are three criteria of your data, to sum the unique values, please apply the below array formula:
=SUM(IF(FREQUENCY(IF($A$2:$A$10=F2,IF($B$2:$B$10=G2,IF($C$2:$C$10=H2,MATCH($D$2:$D$10,$D$2:$D$10,0)))),ROW($D$2:$D$10)-ROW($C$2)+1),$D$2:$D$10))

After inserting the formula, please press press Ctrl + Shift + Enter keys together to get the result. see below screenshot:
https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-sum-unique.png
Please have a try, thank you!
This comment was minimized by the moderator on the site
Hi,
I would like to sum based on two unique criteria, is this possible?
In the second example, rather than James and October being the specific criteria, James would stay the specific element, and the formula would sum based on the name and the month being unique.
Many thanks
Louise
This comment was minimized by the moderator on the site
Hola me podrias ayudar deseo sumar o contar solo valores unicos de fechas especificas me puedes ayudar ya que la formula =SUM(IF(FREQUENCY(IF($A$2:$A$12=D2,MATCH($B$2:$B$12,$B$2:$B$12,0)),ROW($B$2:$B$12)-ROW($B$2)+1),$B$2:$B$12)) me sirve pero como esta en ingles no se como colocarla, te agradezco mucho
This comment was minimized by the moderator on the site
Hello Jorge,

Formula: =SUM(IF(FREQUENCY(IF($A$2:$A$12=E2,IF($B$2:$B$12=F2,MATCH($C$2:$C$12,$C$2:$C$12,0))),ROW($C$2:$C$12)-ROW($C$2)+1),$C$2:$C$12))

Translate the English version formula into the Spanish version:
=SUMA(SI(FRECUENCIA(SI($A$2:$A$12=E2,SI($B$2:$B$12=F2,COINCIDIR($C$2:$C$12,$C$2:$C$12,0))),FILA($C$2:$C$12)-FILA($C$2)+1),$C$2:$C$12))

Please have a try.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
This doesn't actually work as I would have expected. The formula is only counting the unique criteria.

James had 700 units ordered in the first example, yet the total says 600.

The formula won't count his orders that contain the same qty because they are unique. Is there a way to modify this formula so you can get an actual total of all of James' orders?

The second formula has the same issue. James ordered 400 units, not 300 as shown in the summary. 
This comment was minimized by the moderator on the site
Hello, kc, May be the below article can solve your problem, please try:https://www.extendoffice.com/documents/excel/2471-excel-sumif-multiple-criteria.html
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations