Skip to main content

Sum every n rows or columns in a range in Excel

Author: Siluvia Last Modified: 2021-10-28

This tutorial explains two formulas based on the SUM and OFFSET functions to sum every n rows or columns in a specified range in Excel.


How to sum every n rows or columns in a given rang in Excel?

To sum every 3 rows in range E5:E14 as shown in the screenshot below, you can try the below formula.

Generic Formulas

=SUM(OFFSET(A1,(ROW()-offset)*n,0,n,1))

Arguments

A1: Represents the first cell of the range you will sum;
N: It is a number that represents every n rows.

How to use this formula?

1. Select a blank cell to output the first result.

2. Copy or enter the below formula into it and press the Enter key. Select the result cell, drag its AutoFill Handle down to get the other results.

=SUM(OFFSET($E$5,(ROW()-ROW($G$6))*3,0,3,1))

Notes:

1) In the formula, G6 is the cell where the formula sits.
2) To sum every n columns as shown on the screenshot below, please try this formula:

=SUM(OFFSET($C$6,,(COLUMNS($C$9:C9)-1)*3,,3))

Explanation of the formula

=SUM(OFFSET($E$5,(ROW()-ROW($G$6))*3,0,3,1))

OFFSET($E$5,(ROW()-ROW($G$6))*3,0,3,1): Here use the OFFSET function to return a range of reference from the starting row of the return range. OFFSET($E$5,0,0,3,1).
SUM(OFFSET($E$5,0,0,3,1)): The number 3 indicates 3 rows need to be summed starting from E5, then the SUM function sums values in E5:E7 and returns 5726.

Related functions

Excel SUM function
The Excel SUM function adds values.

Excel OFFSET function
The Excel OFFSET function returns a reference to a cell or a range of cells that is offset from a specific cell by a given number of rows and columns.

Excel ROW function
The Excel ROW function returns the row number of a reference.

Excel COLUMNS function
The Excel COLUMNS function returns the total number of columns in a given array or reference.


Related formulas

Sum values by month (with or without year)
This tutorial demonstrates two formulas in detail to help summing values by certain month and year or summing values by certain month ignore year in Excel.

Sum values by the week of a given date
This tutorial talks about how to sum values by the week in which a given date falls

Sum values by weeknum or weekday
This tutorial demonstrates formulas step-by-step to help you sum values in a certain range based on the specified week number or weekday in Excel.

Sum every nth row or column in a range
This tutorial is going to show you how to create a formula based on the SUMPRODUCT, MOD and COLUMN functions to sum every nth row or column in a range in Excel.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 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 VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy 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 Columns to Select Same & Different Cells ...
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 Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations