Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=SUMPRODUCT(($B$2:$B$5)*(WEEKDAY($A$2:$A$5,2)=1))Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
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.
Use =SUMPRODUCT(($B$2:$B$100)*(WEEKDAY($A$2:$A$100,2)<=5)) which includes all days where the WEEKDAY mode-2 result is 5 or less (Monday through Friday).
Use =SUMPRODUCT(($B$2:$B$100)*(WEEKDAY($A$2:$A$100,2)>5)) — mode-2 returns 6 for Saturday and 7 for Sunday, so >5 captures both.
Yes: =SUMPRODUCT(($B$2:$B$100)*((WEEKDAY($A$2:$A$100,2)=1)+(WEEKDAY($A$2:$A$100,2)=3))) — the + acts as logical OR inside SUMPRODUCT.
Combine with NETWORKDAYS logic: =SUMPRODUCT(($B$2:$B$100)*(WEEKDAY($A$2:$A$100,2)<=5)*(ISNA(MATCH($A$2:$A$100,Holidays,0)))) where Holidays is a named range of holiday dates.
Use WEEKNUM instead of WEEKDAY: =SUMPRODUCT(($B$2:$B$100)*(WEEKNUM($A$2:$A$100,2)=E2)) where E2 holds the week number you want.
The result cell inherited date formatting from the source. Select the cell, press Ctrl+1, and switch to Number or Currency format.
Yes — SUMPRODUCT and WEEKDAY behave identically in Sheets, with the same mode-1/mode-2 semantics. The formula above pastes in unchanged.
Multiply ranges together row by row and sum the result — ideal for weighted totals.
How-toAdd up an entire column with SUM. Total a whole column or a fixed range — identical in Excel and Google Sheets.
Error fixSUM returns 0 or the wrong total in Excel and Google Sheets — fix numbers stored as text, filtered ranges, manual calculation mode, and circular references.
ReferenceAggregate a range (sum, average, count…) while ignoring other SUBTOTALs and, optionally, hidden rows. Ideal under filters.
How-toBuild a cumulative running total with a SUM and a clever anchored reference that grows as you copy it down. Works in both apps.
How-toTotal amounts that fall in a given month with SUMIFS and two date bounds. Works the same in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: