Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to sum every n rows down in Excel?

doc-sum-every-n-rows-1

Supposing you have a long list of data in your worksheet, and you need to sum every next 5 rows down like this: =SUM(B2:B6), =SUM(B7:B11) and so on, and then put the result in another column as following screenshot shown. In this article, I will talk about some good formulas for you to solve this problem.

Sum every n rows down in Excel with formulas

Sum every n rows down in Excel with Kutools for Excel


Insert page breaks every x rows:

Kutools for Excel’s Insert Page Break Every Row can help you to insert the page breaks into current worksheet every x Rows you need quickly and conveniently.

doc-sum-every-n-rows-7

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Sum every n rows down in Excel with formulas


In this example, I will sum every 5 rows of the data, please apply the following formula:

1. Enter this formula into a blank cell where you want to put the result: =SUM(OFFSET($B$2,(ROW()-ROW($B$2))*5,0,5,1))

doc-sum-every-n-rows-1

Tip: In the above formula, B2 indicates the started row number you want to sum, and 5 stands for the incremental row numbers. If you want to sum every 10 rows in column B, you just need to change 5 to 10.

2. Then drag the fill handle over to the cells until 0 is displayed. And you will get the results you need. See screenshot:

doc-sum-every-n-rows-1

Notes:

1. Sometimes, you would like the results of every 5 rows’ total values displayed at the last line in column C as following screenshot shown:

doc-sum-every-n-rows-1

In this case, please enter this formula: =IF(MOD(ROW(),5),"",SUM(OFFSET(B1,,,-5))) (B1 is the first cell value which you want to sum in column B, and 5 is the incremental row numbers) into cell C1, and then drag the fill handle to the cells that you want to apply this formula.

Tip: the above formula can be applied successfully if your data begins at the first cell.

2. If you have a list of values in a row, you can also use a formula to sum every n columns, =SUM(OFFSET($A$1,,(COLUMNS($A$3:A3)-1)*5,,5)) (A1 is the cell reference which your first value located, A3 stands for the cell where you put this formula in, and 5 is the incremental column numbers ), and then drag the fill handle over to the right cells until 0 is displayed, see screenshots:

doc-sum-every-n-rows-5
-1
doc-sum-every-n-rows-6

Sum every n rows down in Excel with Kutools for Excel

If you have Kutools for Excel, you can insert some page breaks every n rows, and then calculate the paging subtotals to get the result.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

After installing Kutools for Excel, please do as follows:

1. Click Enterprise > Printing > Insert Page Break Every Row, see screenshot:

doc-sum-every-n-rows-8

2. In the Insert Page Break Every Row dialog box, specify the interval of rows which you want to insert the page breaks, and the page breaks have been inserted into the data every 5 rows, see screenshot:

doc-sum-every-n-rows-9

3. And then click Enterprise > Paging Subtotals, see screenshot:

doc-sum-every-n-rows-10

4. In the Paging Subtotals dialog box, check the column header that you want to do some calculations, and choose the function you need, see screenshot:

doc-sum-every-n-rows-11

5. Then click Ok, all every 5 rows data have been summed up, see screenshot:

doc-sum-every-n-rows-12

Download and free trial Kutools for Excel Now !


Demo: Sum / Average every n rows down in Excel with Kutools for Excel

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Related articles:

How to sum values based on text criteria in Excel?

How to sum cells with text and numbers in Excel?


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.