메인 컨텐츠로 가기

Excel에서 다른 모든 행 / 열을 빠르게 합산하는 방법은 무엇입니까?

우리 모두 알다시피 Sum 함수를 적용하여 셀 목록을 추가 할 수 있지만 때로는 어떤 목적으로 다른 모든 셀을 합산해야하며 Excel에는 모든 n 번째 셀을 합산 할 수있는 표준 함수가 없습니다. 이 상황에서 Excel에서 다른 모든 행 / 열을 어떻게 합산 할 수 있습니까?

공식을 사용하여 다른 모든 또는 n 번째 행 / 열 합계

사용자 정의 함수를 사용하여 다른 모든 또는 n 번째 행 / 열 합계

Excel 용 Kutools를 사용하여 다른 모든 행 / 열의 합계 / 평균 / 계산


다음 예제를 통해 다른 모든 셀을 합산하는 수식을 적용하는 방법을 보여 드리겠습니다.

1. 배열 수식을 사용하여 다른 모든 행 또는 열의 합계

빈 셀에 다음 수식을 입력하십시오. =SUM(IF(MOD(ROW($B$1:$B$15),2)=0,$B$1:$B$15,0)), 다음을 누릅니다. Ctrl + Shift + Enter 키와 B 열의 다른 모든 셀 값이 합산되었습니다. 스크린 샷보기 :

doc-sum-every-every-cell1 2 doc-sum-every-every-cell2

배송 시 요청 사항:

1. 위의 배열 공식에서 숫자 2를 3, 4, 5…로 변경할 수 있습니다. 이것은 3 행마다, 4 행마다, 5 행마다 합계를 의미합니다.

2. 다른 모든 열을 합산하려면 다음 공식을 입력 할 수 있습니다. =SUM(IF(MOD(COLUMN($A$1:$O$1),2)=0,$A$1:$O$1,0)), 그리고 언론 Ctrl + Shift + Enter 결과를 얻으려면 키. 스크린 샷보기 :

doc-sum-every-every-cell3

2. 수식을 사용하여 다른 모든 행이나 열을 합산합니다.

다음은 워크 시트의 다른 모든 셀이나 n 번째 셀을 합산하는 데 도움이되는 또 다른 수식입니다.

빈 셀에 다음 수식을 입력하십시오. =SUMPRODUCT((MOD(ROW($B$1:$B$15),3)=0)*($B$1:$B$15)). 그런 다음 엔터 버튼 키, 모든 세 번째 셀이 추가되었습니다. 스크린 샷보기 :

doc-sum-every-every-cell4 2 doc-sum-every-every-cell5

배송 시 요청 사항:

1. 위 공식에서 숫자 3을 4, 5, 6…으로 변경할 수 있습니다. 이것은 4 행마다, 5 행마다, 6 행마다 합계를 의미합니다.

2. 다른 모든 열을 합산하려면 다음 공식을 입력 할 수 있습니다. =SUMPRODUCT((MOD(COLUMN($A$1:$O$1),3)=0)*($A$1:$O$1)).

doc-sum-every-every-cell6


다음 사용자 정의 함수는 Excel에서 다른 모든 또는 n 번째 셀을 추가하는 데 도움이 될 수 있습니다.

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

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

Function SumIntervalRows(WorkRng As Range, interval As Integer) As Double
'Updateby Extendoffice
Dim arr As Variant
Dim total As Double
total = 0
arr = WorkRng.Value
For i = interval To UBound(arr, 1) Step interval
    total = total + arr(i, 1)
Next
SumIntervalRows = total
End Function
Function SumIntervalCols(WorkRng As Range, interval As Integer) As Double
Dim arr As Variant
Dim total As Double
total = 0
arr = WorkRng.Value
For j = interval To UBound(arr, 2) Step interval
    total = total + arr(1, j)
Next
SumIntervalCols = total
End Function

3. 그런 다음이 코드를 저장하고 필요에 따라 다음 수식을 빈 셀에 입력합니다. 스크린 샷을 참조하십시오.

네 번째 행마다 합산: = SumIntervalRows (B1 : B15,4)

doc-sum-every-every-cell7

네 번째 열마다 합산: = SumIntervalCols (A1 : O1,4)

doc-sum-every-every-cell8

4. 그런 다음 엔터 버튼 키, 당신은 계산을 얻을 것입니다. 스크린 샷보기 :

네 번째 행마다 합계:

doc-sum-every-every-cell9

네 번째 열마다 합계:

doc-sum-every-every-cell10

주의 사항: 숫자 4를 2, 3, 5와 같은 다른 숫자로 변경할 수 있습니다. 즉, 두 번째 행, 세 번째 행, 다섯 번째 행 또는 열마다 합계를 의미합니다.


수식과 사용자 정의 함수가 모두 다소 어려울 수 있습니다. 여기서는이 작업을 해결하는 더 쉬운 방법을 소개 할 수 있습니다.

Excel 용 Kutools간격 행 및 열 선택, 먼저 필요한 다른 모든 또는 n 번째 셀을 선택한 다음 마지막으로 Sum 함수를 사용하여 셀을 합산하여 선택한 셀에 정의 된 이름을 지정할 수 있습니다.

Excel 용 Kutools : 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다.. 

설치 후 Excel 용 Kutools, 다음 단계를 수행하십시오.

1. 다른 모든 셀 또는 n 번째 셀을 합할 열을 선택합니다.

2. 딸깍 하는 소리 쿠툴 > 선택 > 간격 행 및 열 선택, 스크린 샷 참조 :

3. 에서 간격 행 및 열 선택 대화 상자에서 필요한 작업을 지정하고 스크린 샷을 참조하십시오.

doc-sum-every-every-cell12

4. 딸깍 하는 소리 OK, 그리고 다른 모든 행이 첫 번째 행에서 선택되었으며 이제 평균, 합계, 개수와 같은 계산 된 결과가 상태 표시 줄 하단에 표시됩니다. 스크린 샷보기 :

doc-sum-every-every-cell13

배송 시 요청 사항:

1.이 기능으로 2, 3, 4… 간격 옵션을 선택하고 2 단계에서 범위의 첫 번째 행부터 시작하여 3, 4, 3 행 간격으로 셀을 선택합니다.

2. 위의 단계를 사용하여 필요에 따라 다른 모든 열 또는 n 번째 열을 합산 할 수도 있습니다.

이 기능에 대해 더 알고 싶다면 간격 행 및 열 선택.

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


Excel 용 Kutools: 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다. 지금 다운로드 및 무료 평가판!

관련 기사 :

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 (20)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
the above given codes work but when the file is closed and reopen, it doesn't work. again the same codes needs to copy and paste. pls give permanent solution
This comment was minimized by the moderator on the site
Hello,
After pasting the code, when you close the workbook, you should save the workbook as Excel Macro-Enabled Workbook format to save the code.
When you open the workbook next time, click the Enable Content button in the security warning bar.
Please try, thank you!
This comment was minimized by the moderator on the site
Hi i want to sum up every 4 row, but my new table for these sum-up values has an interval of every 12 rows, any idea?
Ex: Sum-up every 4 months data and put those data in a new table at every new year Jan (12 interval row).
This comment was minimized by the moderator on the site
Sorry final question is there a way this can be done in one array in a Sumproduct formula as I'd like the values to still be kept individually.
This comment was minimized by the moderator on the site
That VBA code is helpful, can it be amended so it also sums the first value of the sequence?
This comment was minimized by the moderator on the site
These vma tutorials are the best thing ever. Very helpful thank you guys!
This comment was minimized by the moderator on the site
The formula is not working for the column can anyone please help me to add odd column
This comment was minimized by the moderator on the site
Hi, Nilesh,
If you want to sum the cell values in all odd row, the below formula may help you! (Please change the cell references to your need.)

=SUMPRODUCT(B1:B15,MOD(ROW(B1:B15)+0,2))

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Is there a way to add another criteria to this formula? I want to add every 9th row that is great than -40. I would appreciate your help. Thanks in advance!
This comment was minimized by the moderator on the site
Used the visual basic programming – excellent! The other options worked fine except for row n.º 1.
This comment was minimized by the moderator on the site
sir I have used visual basic for SumIntervalCols function as stated above and saved the file as macro enable worksheet. when next time open the file the user define command is missing from drop down function menu Please help how to fix user define macro and can be used for other excel sheets. regards D KUMAR
This comment was minimized by the moderator on the site
This method does not work for me. I entered the 15 numbers in the column B (B1:B15) as in the example and copy the formula to a blank cell, the result is 0. If I change the if statement to IF(MOD(ROW($B$1:$B$15),2)=1, the result is 3795 that is sum(B1:B15). What is wrong?
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