COUNTIF and SUMIF are two sides of the same question. A market manager wants to know how many deliveries of fruit arrived, and also how much they weigh or cost. COUNTIF answers “how many”, SUMIF answers “how much”. Both use the same criterion, written in the same way, which makes them easy to learn together.
The following exercise shows you how to count and total deliveries with one single criterion, typed in the formula or read from a cell.
What you will practice in this exercise
You work on the fresh produce deliveries of a market. You answer 6 questions, one formula per question:
- Count the fruit deliveries (COUNTIF with a text criterion)
- Count with a criterion read from a cell (cell reference)
- Count the apple deliveries (COUNTIF)
- Calculate the total quantity of fruit (SUMIF)
- Calculate the total amount for vegetables (SUMIF)
- Calculate a total with a criterion read from a cell (SUMIF + cell reference)
Practice with exercises
COUNTIF + SUMIF — Market deliveries
Count and total fruit and vegetable deliveries by combining COUNTIF and SUMIF.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.