Conditions · SUMIF, SUMIFS
SUMIF and SUMIFS in Excel - add up with conditions
SUMIF adds the cells that meet one condition; SUMIFS adds with several conditions.
=SUMIFS(sum_range, criteria_range1, criteria1, ...)Write it for my sheet
Examples
| Type this in the Formula Studio | Formula |
|---|---|
| “sum of D2 to D9 where C is Jaipur” | =SUMIFS(D2:D9,C2:C9,"Jaipur") |
| “sum of C4:AG4 above 50” | =SUMIF(C4:AG4,">50") |
Tips
- In the studio you can also name columns: "total sales for Jaipur excluding cancelled".
People also search for
FAQ
What is the difference between SUMIF and SUMIFS?
SUMIF takes one condition: =SUMIF(range,criteria,[sum_range]). SUMIFS takes many, and the sum range comes first: =SUMIFS(sum_range,range1,crit1,...).
How do I use SUMIFS with a date range?
Use two conditions on the date column: =SUMIFS(D2:D99,A2:A99,">="&G1,A2:A99,"<="&G2), with the start date in G1 and end date in G2.
Can LoveByPDF write this formula for me?
Yes. Open your Excel file in the Excel Agent's Formula Studio, click a cell and type what you need - e.g. "sum of D2 to D9 where C is Jaipur" - you get the formula, a preview on your sheet and an explanation, then insert it.
Related formulas
- IFIF formula in Excel - with examples in plain words
- IF (nested), AND, ORNested IF and IF with AND / OR in Excel
- IFERRORIFERROR in Excel - hide #DIV/0!, #N/A and other errors
- COUNTIF, COUNTIFSCOUNTIF in Excel - count cells that match (attendance P / A / L)
- SUMSUM formula in Excel - add up cells, rows and columns
- AVERAGEAVERAGE formula in Excel - the mean of a range
- COUNT, COUNTA, COUNTBLANKCOUNT vs COUNTA vs COUNTBLANK - counting cells in Excel
- MAX, MINMAX and MIN in Excel - highest and lowest value