• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

Calculate the Sum of All Nth Rows In Excel

0 Comments

Calculating the sum of all rows is easy, but what if you need to calculate the sum of all Nth rows in Excel, for example, calculate the sum of the 5th rows in a table? Let Buffcom.net show you how!

3 Steps to Write an Array Formula to Calculate the Sum of All Nth Rows in Excel

To calculate the sum of all Nth rows in Excel, we need to use an array formula. An array formula is a formula that can perform multiple calculations on one or more items in an array. (An array can be a row, a column, or a range that combines multiple rows and columns). An array formula can return multiple results or a single result.

In the example used below, we will calculate the sum of the 2nd rows in the table, i.e., N = 2. Let’s go through each step to write a nested function.

Step 1: Use the ROW Function to Return the Number of Rows in a Cell

The ROW function returns the row number of a cell or range of cells that you enter in the formula. The returned value will be a specific number with the position on the column.

To determine the row of a cell, you enter the formula:

=ROW(reference range)

Calculate the Sum of All Nth Rows In Excel 1Step 2: Use the MOD Function to Indicate the Characteristics of N

The MOD function will return the remainder of a division.
In this example, for the second row, MOD(2,2) = 0 because 2 divided by 2 equals 1 with a remainder of 0. As a result, the formula returns 0 for all 2nd rows. So, in the case of calculating the sum of all 2nd rows in Excel (N=2), we need to find the rows that have a remainder of 0 when divided by 2.
The formula now is: =MOD(ROW(reference range),N)

Calculate the Sum of All Nth Rows In Excel 2Change the formula a little to =MOD(ROW(cell reference),N)=0 to replace the remainder with TRUE or FALSE. In this example, any rows with a number that is divisible by 2 will return TRUE, and these are the rows we need to calculate the sum of.

Calculate the Sum of All Nth Rows In Excel 3Step 3: Calculate the Sum of All Nth Rows in Excel Using the SUM Function

To calculate the product sum of these two ranges (in this case, FALSE = 0, TRUE = 1, depending on the situation and can be changed accordingly), use the SUM function:

=SUM(reference range*(MOD(ROW(reference range),N)=0)

After writing the formula in the sum cell, press the CTRL + SHIFT + ENTER combination to return the result.

Calculate the Sum of All Nth Rows In Excel 4 1Note: After pressing Ctrl + Shift + Enter, the formula bar will indicate that this is an array formula by automatically placing it in curly braces {}. So, press the combination keys instead of typing these braces manually. They will disappear when you edit the formula.

If you are using Office 365 or Office 2021, you don’t need to press the combination keys, just press Enter, and the formula will not have curly braces.

Explanation
The product of these two ranges (constant array) is stored in Excel memory, not in a range. The constant array in Excel will look like:

{0; 16; 0; 46; 0; 19; 0; 62; 0; 18; 0; 6; 0;83; 0; 58; 0; 10; 0; 67; 0}

This constant array is used as an argument for the SUM function, which returns the result of 385.

Conclusion

Through this article, Buffcom.net has instructed you on how to write an array formula to quickly calculate the sum of the Nth rows in Excel.

3 steps to write a formula to calculate the sum of all Nth rows in Excel:

B1: Use the ROW function to return the row number of the cell.

B2: Use the MOD function to identify the Nth rows.

B3: Calculate the sum of the Nth rows using the SUM function.

In addition, if your job is related to Office computing but the software does not meet your needs. To purchase genuine software, please contact Buffcom.net for support!

Rate this post
23
258 Views
Useful Excel Tips and Tricks for Management AccountantsPrevUseful Excel Tips and Tricks for Management AccountantsApril 15, 2023
Automatically Updating Chart Data In ExcelApril 15, 2023Automatically Updating Chart Data In ExcelNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Kaspersky Total Security 2021 1 year 5 devices key Global Kaspersky Total Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $46.00
  • Avast Premium Security 2021 Avast Premium Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
  • Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL
    Rated 5.00 out of 5
    $17.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 2 Years Global AVG Internet Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $42.20
Products
  • Windows Server 2022 Standard Key Global Windows Server 2022 Standard Key Global
    Rated 4.10 out of 5
    $7.00
  • Buy Windows 11 Home CD Key Global Buy Windows 11 Home CD Key Global
    Rated 4.73 out of 5
    $6.00
  • Microsoft Visual Studio Enterprise 2022 For 1 PC Microsoft Visual Studio Enterprise 2022 For 1 PC $19.00
  • Microsoft SQL Server 2019 Enterprise Microsoft SQL Server 2019 Enterprise $39.00
  • Microsoft Office Professional Plus 2010 retail Microsoft Office Professional Plus 2010 retail Key Global - 5 PC
    Rated 4.96 out of 5
    $15.00
  • Windows Server 2012 R2 Standard Key Global Windows Server 2012 R2 Standard Key Global
    Rated 4.78 out of 5
    $15.00
  • Office 2024 Home And Business For Mac/Pc Bind Office 2024 Home And Business For Mac/Pc Bind $99.00
  • SQL Server 2019 Standard SQL Server 2019 Standard $20.00
  • AVG Internet Security 2021 10 Devices 2 Years Global AVG Internet Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $42.20
  • Windows Server 2016 Essentials Key Global Windows Server 2016 Essentials Key Global
    Rated 4.79 out of 5
    $10.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.