FormulaCraft

How to sum every other row in Excel and Google Sheets

Topic:SUM & aggregation
Excel & Google Sheets
=SUMPRODUCT((MOD(ROW(B2:B7),2)=0)*B2:B7)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Identify the range to sum, e.g. B2:B7 (six data rows after a header in row 1).
  2. 2Enter =SUMPRODUCT((MOD(ROW(B2:B7),2)=0)*B2:B7). MOD(ROW(...),2) returns 0 for even row numbers and 1 for odd; the =0 comparison picks even rows.
  3. 3To sum odd rows instead, change =0 to =1: =SUMPRODUCT((MOD(ROW(B2:B7),2)=1)*B2:B7).

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

How do I sum every other row starting from the second data row?

Adjust the modulus condition: if row 2 is your first data row and you want rows 3, 5, 7… use MOD(ROW(B2:B7)-1,2)=0.

Does this formula update automatically when data changes?

Yes — SUMPRODUCT recalculates whenever any cell in the referenced range changes.

More on SUM & aggregation

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: