How to Sum Every Other Cell Across a Row in Excel
Question details
The user needs to calculate the total sum of values in alternating columns (e.g., A, C, E or B, D, F) across one or multiple rows.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Compiling data across a wide dataset where data is grouped in alternating columns (like 'Budget' vs 'Actual') and calculating an aggregated total for only one of those categories per row.
- Observed behavior
- Requires a formulaic method to selectively sum cells across a row skipping every other column, rather than manually clicking and adding each individual cell reference.
Before applying these formulas, ensure your data is consistently structured across the row and that the cells you want to sum contain numeric values, not text.
Use SUMIF with a Helper Criteria Row
This is the most reliable method if your alternating columns share a consistent header or label, allowing Excel to sum columns based on matching text.
By setting up a criteria row above your data, you can use the SUMIF function to scan the headers and only sum the values in columns that match your specified label.
Ensure you have a header row (e.g., Row 1) where the alternating columns have a repeating identifier, such as 'Target' in columns A, C, E and 'Actual' in columns B, D, F.
Click on the cell at the end of your row (e.g., Q3) where you want the sum of the alternating columns to appear.
Type the formula =SUMIF($A$1:$P$1, Q$1, A3:P3). In this formula, $A$1:$P$1 is the header row, Q$1 contains the criteria you are looking for, and A3:P3 is the row containing the numbers to sum.
Press Enter to calculate the sum. If you have multiple rows of data, click the fill handle in the bottom-right corner of cell Q3 and drag it down to copy the formula for the remaining rows.

Use SUMPRODUCT with ISODD or ISEVEN
Use this method if you do not have header criteria and want to sum values strictly based on whether their column position is odd or even.
Easily Sum Alternating Cells with WPS Spreadsheet
WPS Spreadsheet fully supports advanced array formulas like SUMIF, SUMPRODUCT, and logical functions (ISODD/ISEVEN), allowing you to sum every other cell seamlessly with identical syntax to Excel.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook containing the data.
- 2. Enter the Formula: Select an empty cell and enter your preferred SUMIF or SUMPRODUCT formula just as you would in Excel.
- 3. Calculate and Fill: Press Enter to get the result, and use the fill handle to drag the formula down to apply it to additional rows.

Frequently Asked Questions
Can I sum every third or fourth cell instead of every other cell?
Yes. Instead of using ISODD or ISEVEN, you can use the MOD function combined with SUMPRODUCT. For example, to sum every third column in row 3, use =SUMPRODUCT(--(MOD(COLUMN(A3:Z3),3)=0), A3:Z3).
Why is my SUMIF formula returning zero?
This usually happens if the criteria range (headers) and sum range (data row) are different sizes, or if there are hidden trailing spaces in your header names that prevent an exact match. Ensure your ranges align and your criteria text perfectly matches the header cells.
Does the ISODD/ISEVEN method work for alternating rows as well?
Yes, it works identically for columns. Simply replace the COLUMN() function with the ROW() function in your formula. For example: =SUMPRODUCT(--(ISODD(ROW(A1:A20))), A1:A20) will sum the odd-numbered rows in column A.




