Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=SUMIF(A2:A4,"Sales",B2:B4)Computed by a real spreadsheet engine on the sample data below.
| Dept | Amount |
| Sales | 1200 |
| HR | 800 |
| Sales | 950 |
=SUMIF(A2:A4,"Sales",B2:B4)→2150
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Yes — SUMIFS with one condition pair works exactly like SUMIF and is slightly more consistent. Many users prefer SUMIFS for everything to avoid remembering the argument order difference.
Use SUMIFS for date ranges: =SUMIFS(C2:C100,A2:A100,">="&DATE(2024,1,1),A2:A100,"<="&DATE(2024,12,31)) to sum between two dates.
Add up the cells in a range that meet a single condition.
How-toUse SUMIF with a date comparison criterion to sum values only for dates on or after (or before) a specific date in your data range.
Error fixSUMIF returns 0 instead of the expected total in Excel and Google Sheets — fix number-as-text, criteria mismatch, range size errors, and data-type issues.
ReferenceSum values that meet multiple conditions at once.
How-toUse SUMIFS with two date criteria on the same date column to sum values that fall within a specific start and end date range.
Error fixSUMIF not working in Excel and Google Sheets — diagnose formula errors, criteria syntax problems, range mismatches, and wildcard issues.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: