Skip to content
Edition NigeriaGlobal
Country: Mexico

You are in the Mexico edition. Type your country to switch.

The Americas

Set up your profile

You are learning in the Mexico edition, with examples in pesos and from Mexico.

Excel and spreadsheets with AI · Lesson 2 of 8

IF, SUMIFS and COUNTIFS

Conditional formulas answer questions such as "how much did the North region sell in March?" without filtering or adding by hand. This lesson teaches IF with AND and OR, nested IF versus IFS, SUMIFS, COUNTIFS and AVERAGEIFS on a small sales list, and criteria that use dates.

Beginner13 min read6 steps

This lesson is complete in writing. A video for it is on its way.

What you will learn

  • By the end you can write an IF formula, including tests joined with AND and OR.
  • You can build tiered rules with nested IF or IFS and put the tests in a safe order.
  • You can total, count and average a sales list by one or more conditions with SUMIFS, COUNTIFS and AVERAGEIFS.
  • You can filter conditional totals by date and check that every breakdown adds back to the grand total.

Key terms in this lesson

Logical test
A comparison inside a formula, such as an amount being at least 300, that returns TRUE or FALSE and decides which result a function like IF gives.
Nested IF
An IF function placed inside another IF, used to choose between more than two outcomes; the tests are checked in order and the first true one wins.
Conditional sum
Adding up only the values that meet one or more stated conditions, for example the amounts of invoices that are both paid and in one region.
Criteria range
The column of cells that a conditional function such as SUMIFS or COUNTIFS checks against a condition to decide which rows to include.
Wildcard character
A symbol used in a text condition to stand for unknown characters: an asterisk matches any run of characters and a question mark matches exactly one.

Step 1 of 6

IF: one test, two outcomes

Opening this step…

Step 2 of 6

Nested IF versus IFS

This step opens when you finish the one above.

Step 3 of 6

SUMIFS on a sales list

This step opens when you finish the one above.

Step 4 of 6

COUNTIFS and AVERAGEIFS

This step opens when you finish the one above.

Step 5 of 6

Criteria with dates

This step opens when you finish the one above.

Step 6 of 6

Checking that conditional totals add up

This step opens when you finish the one above.

Key takeaways

The key takeaways open when you finish every step.

Lesson quiz

5 questions. You need 85% to pass.

The quiz opens when you finish every step.

Read first

Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.

Up next

Skills for the AI ageLookups: XLOOKUP, VLOOKUP and IN…Read nowLookups: XLOOKUP, VLOOKUP and INDEX MATCHSkills for the AI age · Beginner · 15 minSkills for the AI ageCleaning data: text, dates, dupl…Read nowCleaning data: text, dates, duplicates and tidy tablesSkills for the AI age · Beginner · 15 minSkills for the AI agePivot tables, charts and a simpl…Read nowPivot tables, charts and a simple dashboardSkills for the AI age · Beginner · 15 minSkills for the AI ageA budget, variance analysis and …Read nowA budget, variance analysis and a simple business caseSkills for the AI age · Beginner · 15 minPortfolio managementDrawdowns: measuring the fall an…Read nowDrawdowns: measuring the fall and the climb backPortfolio management · Advanced · 5 minCareers & professional skillsStudy and exam technique for pro…Read nowStudy and exam technique for professional examsCareers & professional skills · Intermediate · 15 minMexican marketsLatin American marketsRead nowLatin American marketsMexican markets · Intermediate · 15 minAccounting & financeThe income statementRead nowThe income statementAccounting & finance · Beginner · 15 minStock marketrights issueRead nowWhat is a rights issue?Stock market · Intermediate · 15 minStock marketstock splitRead nowWhat is a stock split?Stock market · Intermediate · 5 minInvesting strategiessectors and why do they matterRead nowWhat are sectors and why do they matter?Investing strategies · Intermediate · 5 minHuman resourcesCross-border transfers and globa…Read nowCross-border transfers and global HR systemsHuman resources · Advanced · 15 min
English