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


How to sum every n rows down in Excel?


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.


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))


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:



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:


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:


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:


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:


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


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:


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


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?

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.