Essential formulas: SUM, IF, COUNTIFS, SUMIFS
Excel · 17 questions
Short notes
Key idea
A handful of functions cover most daily work: totals, averages, a yes/no decision, and counting or summing only the rows that meet conditions.
Syntax
=SUM(B2:B100) =AVERAGE(B2:B100)
=IF(B2>=1000, "Big", "Small")
=COUNTIF(C2:C100, "Chennai")
=COUNTIFS(C2:C100, "Chennai", D2:D100, ">=1000")
=SUMIFS(D2:D100, C2:C100, "Chennai", E2:E100, "Paid")
=IFERROR(B2/C2, 0)
Example
Total paid revenue from Chennai: =SUMIFS(D:D, C:C, "Chennai", E:E, "Paid"). The sum range comes first, then pairs of (range, condition). To make it a dashboard, put "Chennai" in a cell like H1 and write =SUMIFS(D:D, C:C, H1, E:E, "Paid").
Traps
SUMIFandSUMIFStake arguments in different orders: SUMIF puts the sum range last, SUMIFS first.- Conditions with operators are text:
">=1000", or">="&H2with a cell. - All ranges in COUNTIFS/SUMIFS must be the same size.
- IFERROR hides every error, typos included. Use it only where you expect one.
Want the full lesson with step-by-step examples, a project and a certificate? Excel course, ₹120 →
Questions
5 free questions- Question 1easy
A2:A6 contains: Chennai, 12, (empty), Kochi, 45. What does
=COUNT(A2:A6)return? - Question 2medium
On the orders sheet, amounts are in G2:G81 and payment methods in F2:F81. Which formula sums amounts paid by UPI?
- Question 3medium
E2 contains 2999. What does this return?
=IF(E2>=3000, "Premium", IF(E2>=1000, "Mid", "Budget"))
- Question 4medium
D2:D6 holds statuses: delivered, pending, delivered, cancelled, delivered. E2:E6 holds amounts: 500, 2000, 1500, 3000, 800. What does this return?
=COUNTIFS(D2:D6, "delivered", E2:E6, ">1000")
- Question 5hard
On the orders sheet, order dates are in C2:C81. Write a formula that counts the orders placed in 2024.
Write your answer on your own machine, then compare with the solution.
Essential formulas: SUM, IF, COUNTIFS, SUMIFS
Essential formulas: SUM, IF, COUNTIFS, SUMIFS
Essential formulas: SUM, IF, COUNTIFS, SUMIFS
Essential formulas: SUM, IF, COUNTIFS, SUMIFS
Essential formulas: SUM, IF, COUNTIFS, SUMIFS
12 more questions on this topic, with hints, and tests
Sign up free for 21 days of every question and test.