Skip to main content

Kutools for Office β€” One Suite. Five Tools. Get More Done.

How to sum every n rows down in Excel?

Author Xiaoyang Last modified
sum every n rows

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


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

apply a formula to sum every n rows

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:

drag and fill the formula to other cells

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:

sum every n rows and put total values at the last line

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:

apply a formula to sum every n columns
arrow down
drag the formula right to get the results

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 offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as follows:

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

click Insert Page Break Every Row feature of kutools

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:

set options in the Insert Page Break Every Row dialog box

3. And then click Kutools Plus > Printing > Paging Subtotals, see screenshot:

click Paging Subtotals feature of kutools

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:

set options in the Paging Subtotals dialog box

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

every 5 rows data have been summed up

Download and free trial Kutools for Excel Now !


Related articles:

How to sum values based on text criteria in Excel?

How to sum cells with text and numbers in Excel?

Best Office Productivity Tools

πŸ€– Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite β€” Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license β€” set up in minutes (MSI-ready)
  • Works better together β€” streamlined productivity across Office apps
  • 30-day full-featured trial β€” no registration, no credit card
  • Best value β€” save vs buying individual add-in