How to Sum Non-Overlapping Pairs of Cells in Excel
Question details
The user needs a formula to calculate distinct cell pairs consecutively (e.g., A1+A2, A3+A4) while deliberately skipping overlapping combinations like A2+A3, without using helper columns.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating totals for paired data points structured continuously in a single column without double-counting the intermediate rows.
- Observed behavior
- The user wants to generate the sum only for the primary row of each pair and leave the alternate row blank to prevent duplicate or overlapping calculations.
Ensure your data is organized continuously in a single column without empty rows interrupting the pairs, as the solution relies on the mathematical sequence of row numbers.
Use the IF and MOD Functions to Calculate Row Pairs
This method uses the MOD function to check whether a row number is odd or even, restricting the addition formula to apply only to the first row of a designated pair.
By evaluating the row number with the MOD function, we can determine if the current cell is on an odd or even row. We then tell Excel to perform the calculation only on odd rows and return an empty string on even rows, completely avoiding overlapping additions.
Click on the cell in an adjacent column where you want the first sum to appear (e.g., cell B1 to calculate the pair A1 and A2).
Type the formula =IF(MOD(ROW(),2)>0,A1+A2,"") into the formula bar and press Enter. This tells the program to add A1 and A2 only if the current row number is odd.
Click the fill handle at the bottom-right corner of the cell and drag it down your column. The formula will automatically calculate sums for odd rows and leave even rows blank, preventing overlapping sums.

Use WPS Spreadsheet to Calculate Advanced Formulas Efficiently
WPS Spreadsheet is fully compatible with Excel formulas, including IF, MOD, and ROW. You can calculate non-overlapping pairs using the exact same logic with its highly intuitive interface.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open your spreadsheet file containing the column of data you need to sum.
- 2. Input the row-checking formula: Select the target blank cell next to your first data point and enter =IF(MOD(ROW(),2)>0,A1+A2,"").
- 3. Apply the formula to your data: Double-click or drag the fill handle in the lower-right corner of the cell to automatically apply the formula down the rest of your data list.

Frequently Asked Questions
Can I sum groups of three cells instead of pairs?
Yes, you can modify the MOD function to accommodate different group sizes. For groups of three starting at row 1, use =IF(MOD(ROW(),3)=1, A1+A2+A3, ""). This will calculate the sum on every third row.
What if my data doesn't start on row 1?
If your data starts on a different row, you can subtract an offset within the ROW() function to reset the count. For example, if your data begins on row 5, use MOD(ROW()-4, 2) so the logic correctly identifies the first data point as position 1 (an odd number).
Is it possible to filter out the blank rows after applying the formula?
Yes. Once you have applied the formula and generated the sums, you can select the column, turn on the Filter tool from the Data tab, and uncheck 'Blanks' to display only the rows containing your pair totals.




