메인 컨텐츠로 가기

Excel에서 필터링되거나 보이는 셀만 합산하는 방법은 무엇입니까?

Excel에서 숫자 열을 합산하는 것이 쉬울 수 있지만 때로는 기준을 충족하기 위해 일부 데이터를 필터링하거나 숨겨야합니다. 숨기거나 필터링 한 후 이제 필터링되거나 표시되는 값만 더하고 싶습니다. Excel에서 Sum 함수를 적용하면 숨겨진 데이터를 포함한 모든 값이 추가됩니다.이 경우 Excel에서 필터링되거나 표시되는 셀 값만 어떻게 합산 할 수 있습니까?


수식을 사용하여 필터링되거나 표시되는 셀 값만 합산

이와 함께 SUBTOTAL 필터에 의해 제외 된 행을 무시하는 기능을 사용하면 보이는 셀만 쉽게 추가 할 수 있습니다. 다음과 같이 할 수 있습니다.

데이터 범위가 있고 필요에 따라 필터링되었다고 가정하면 스크린 샷을 참조하십시오.

1. 예를 들어 빈 셀 C13에 다음 공식을 입력합니다. = 소계 (109, C2 : C12) (109 숫자를 더할 때 숨겨진 값이 무시됨을 나타냅니다. C2 : C12 필터링 된 행을 무시하고 합계 할 범위입니다.) 엔터 버튼 키.

참고 : 이 수식은 워크 시트에 숨겨진 행이있는 경우 보이는 셀만 합산하는데도 도움이됩니다. 그러나이 수식은 숨겨진 열의 셀을 무시하고 합산 할 수 없습니다.

숨겨 지거나 필터링 된 셀 / 행 / 열을 무시하고 지정된 범위에서만 표시되는 셀의 합계 / 개수 / 평균

일반적으로 SUM / Count / Average 함수는 물질 셀이 숨김 / 필터링되었는지 여부에 대해 지정된 범위의 모든 셀을 계산합니다. 소계 함수는 숨겨진 행을 무시하고 합계 / 계산 / 평균 할 수 있습니다. 그러나 Excel 용 Kutools 요약 가능 / 가산 / 평균 가시성 함수는 숨겨진 셀, 행 또는 열을 무시하여 지정된 범위를 쉽게 계산합니다.


광고 합계 개수 평균 표시 셀만

사용자 정의 함수로 필터링되거나 보이는 셀 값만 합산

다음 코드에 관심이 있다면 보이는 셀만 합산하는 것도 도움이 될 수 있습니다.

1. 누르고 ALT + F11 키가 열립니다. 응용 프로그램 용 Microsoft Visual Basic 창.

2. 딸깍 하는 소리 끼워 넣다 > 모듈을 클릭하고 모듈 창에 다음 코드를 붙여 넣습니다.

Function SumVisible(WorkRng As Range) As Double
'Update 20130907
Dim rng As Range
Dim total As Double
For Each rng In WorkRng
    If rng.Rows.Hidden = False And rng.Columns.Hidden = False Then
        total = total + rng.Value
    End If
Next
SumVisible = total
End Function

3. 이 코드를 저장하고 공식을 입력하십시오 = SumVisible (C2 : C12) 빈 셀에. 스크린 샷보기 :

4. 그런 다음 엔터 버튼 키를 누르면 원하는 결과를 얻을 수 있습니다.


Excel 용 Kutools를 사용하여 합계 / 개수 / 평균 만 필터링되거나 표시되는 셀

Excel 용 Kutools가 설치되어있는 경우 Excel에서 표시되거나 필터링 된 셀만 합계 / 개수 / 평균을 빠르게 계산할 수 있습니다.

Excel 용 Kutools - 300개 이상의 필수 도구로 Excel을 강화하세요. 신용카드 없이 모든 기능을 갖춘 30일 무료 평가판을 즐겨보세요! 이제 그것을 잡아

예를 들어 보이는 셀만 합산하려면 합산 결과를 넣을 셀을 선택하고 수식을 입력하십시오. = SUMVISIBLE (C3 : C12) (C3 : C13은 보이는 셀만 합산하는 범위입니다.) 엔터 버튼 키.

그런 다음 모든 숨겨진 셀을 무시하고 합계 결과를 계산합니다. 스크린 샷보기 :

보이는 셀만 계산하려면이 공식을 적용하세요. = COUNTVISIBLE (C3 : C12); 보이는 셀만 평균화하려면이 공식을 적용하십시오. = AVERAGEVISIBLE (C3 : C12).

참고 : 수식을 정확히 기억하지 못하는 경우 아래 단계에 따라 보이는 셀만 쉽게 합계 / 계산 / 평균 할 수 있습니다.

1. 합산 결과를 넣을 셀을 선택하고 쿠툴 > 기능 > 통계 및 수학 > 요약 가능 (또는 평균 가시성, 가산 필요에 따라). 스크린 샷보기 :

2. Open Function Arguments 대화 상자에서 숨겨진 셀을 무시하고 합계 할 범위를 지정하고 OK 단추. 스크린 샷보기 :

Excel 용 Kutools - 300개 이상의 필수 도구로 Excel을 강화하세요. 신용카드 없이 모든 기능을 갖춘 30일 무료 평가판을 즐겨보세요! 이제 그것을 잡아

그런 다음 모든 숨겨진 셀을 무시하고 합계 결과를 계산합니다.


데모 : 합계 / 개수 / 평균 만 필터링되거나 표시되는 셀


Excel 용 Kutools: 300개 이상의 편리한 도구를 손쉽게 사용할 수 있습니다! 지금 바로 기능 제한 없이 30일 무료 평가판을 시작해 보세요. 지금 다운로드!

Excel에서 숨겨진 행을 삭제하여 필터링 된 / 표시되는 셀만 쉽게 합계 / 계산

Excel에서 필터링 된 셀을 합산 / 계산할 때 SUM 함수 또는 Count 함수는 숨겨진 셀을 무시하지 않습니다. 숨겨진 / 필터링 된 행이 제거되면 보이는 셀만 쉽게 합하거나 계산할 수 있습니다. Excel 용 Kutools를 사용해 볼 수 있습니다. 숨겨진 (표시) 행 및 열 삭제 그것을 해결하는 유틸리티.


광고 삭제 숨겨진 행 열 3

관련 기사 :

최고의 사무 생산성 도구

🤖 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 (26)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Bonjour,
Moi j'ai un problème comparable mais différent, en gros quand je filtre mes colonnes et que je veux copier la même valeur dans mes lignes visibles, toute les lignes qui sont entre mes lignes visibles sont elles aussi modifiées.
Comment faire pour que seule mes lignes visibles soient modifiés.
This comment was minimized by the moderator on the site
Hello, Loux

Do you mean to copy and paste cell vaues to visible cells only? If so, maybe the below articles can help you:
https://www.extendoffice.com/documents/excel/2331-excel-paste-data-into-filtered-list.html
https://www.extendoffice.com/documents/excel/2617-excel-paste-to-visible-filtered-cells.html

Please try it, thank you!
This comment was minimized by the moderator on the site
Hola,

No me resulta sumar el rango de una fila considerando sólo las columnas visibles.

Alguna formula o alguna macro?

Gracias!!!
This comment was minimized by the moderator on the site
Hello, Cristobal,
Sorry, I can't understand your problem clearly, could you explain your problem in English?
Or you can insert a screenshot or a file to describe your problem.
Thank you!
This comment was minimized by the moderator on the site
Hola,

Quiero sumar dentro de un rango de fila que al ocultar columnas sume sólo las visibles.
No he logrado hacerlo, alguna fórmula? o tendría que hacerse con una marcro?

Muchas gracias!!!
This comment was minimized by the moderator on the site
how to skip hidden cells from excel formulae in filtered sheet....

yellow coloured cells are involving hidden cells due to filter....
This comment was minimized by the moderator on the site
Hi,
What kinds of calculation do you need to do? Kutools for Excel supports three functions to count/sum/average ignoring all hidden cells.
This comment was minimized by the moderator on the site
or like this



column a column d

100 10

90 10

80 10



where 90=100-10, 80=90-10, and so on.........

dragging the formula includes hidden cells in formula
This comment was minimized by the moderator on the site
When i am applying say G3-K2 Formula in filtered excel sheet & dragging the formula, it includes hidden cells

for example



Validity Lifting Qty
27054.59 123.41
26931.18 330.98
26600.20 493.66
26106.54 476.38
25630.16 480.64
25149.52 577.06


now value in validity comes after get subtracted by lifted qty (like 2nd value 26931.18=27054.59-123.41)

3rd value in validity=2nd value in validity-2nd value in lifted qty. and so on.....

now this sheet is filtered & when i drag the formulae in validity column, it includes hidden cells, due to filter.

which gives me wrong result
This comment was minimized by the moderator on the site
Validity Lifting Qty
27054.59 123.41
26931.18 330.98
26600.20 (26600.2=26931.18-330.98) 493.66
26106.54 476.38
25630.16 480.64
25149.52 577.06
This comment was minimized by the moderator on the site
When i am applying say G3-K2 Formula in filtered excel sheet & dragging the formula, it includes hidden cells

for example



Validity Lifting Qty
27054.59 123.41
26931.18 330.98
26600.20 493.66
26106.54 476.38
25630.16 480.64
25149.52 577.06


now value in validity comes after get subtracted by lifted qty (like 2nd value 26931.18=27054.59-123.41)

3rd value in validity=2nd value in validity-2nd value in lifted qty. and so on.....

now this sheet is filtered & when i drag the formulae in validity column, it includes hidden cells, due to filter.

which gives me wrong result
This comment was minimized by the moderator on the site
Hi,
The normal =G3-K2 will not ignore any hidden cells/rows/column by dragging to copy. I am sorry I can not figure out a proper formula for your. All formulas or methods talked in this article is just about sum/count/average ignoring hidden cells.
This comment was minimized by the moderator on the site
how i can skip hidden cells from excel formulae in filtered sheet
This comment was minimized by the moderator on the site
Im trying to use the AVERAGEVISIBLE function to average the 12 largest values in a column, this works in the normal AVERAGE function as =AVERAGE(LARGE(E971:E1540,{1,2,3,4,5,6,7,8,9,10,11,12})) however when i try to use the average visible function it returns #VALUE!, any ideas?
This comment was minimized by the moderator on the site
This is awesome! Thanks so much.
This comment was minimized by the moderator on the site
Sorry I messed up the posts security code at bottom and seems like my question may have been deleted as it asked me to try another one. I can get the VBA code for SUMVISIBLE to work well if my data is vertical and I hide rows. However it doesn't if my data runs horizontal and I want to hide columns. Is there a way to program this? Thanks!
This comment was minimized by the moderator on the site
I am able to get your VBA for =SUMVISIBLE above to work good. However just if my data runs vertically and I am hiding rows. Is there a way to program it so you can have your data run horizontally and it still work when you hide columns? THANKS!
This comment was minimized by the moderator on the site
The solution worked for me. :D
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