Unit 5 - 9. When To Use Count Vs Sum Vs Counta Vs Countblank Vs Countif
Unit 5 - 9. When To Use Count Vs Sum Vs Counta Vs Countblank Vs Countif
COUNTA vs COUNTBLANK vs
COUNTIF
1. What is the difference between SUM and
COUNT?
Very simply, SUM calculates a total for a number of cells or values, so it’s answering
the question: HOW MUCH? Or, WHAT IS THE TOTAL?
COUNT tells you HOW MANY cells meet a certain condition.
Consider the following data:
• COUNT counts how many cells in a range contain numeric data (numbers).
• COUNTA counts how many populated cells in a range (i.e. not blank).
• COUNTBLANK counts how many blank cells in a range.
• COUNTIF counts how many cells in a range meet a certain condition.
Consider the following data:
=COUNT(B2:B11)
Answer = 5.
=COUNTA(B2:B11)
Answer = 7.
=COUNTBLANK(B2:B11)
Answer = 3.
There is no single function that tells you the number of text cells but you can work it out
with this formula:
=COUNTA(B2:B11) - COUNT(B2:B11)
The COUNTIF function needs 2 bits of information - the range of cells you are
looking at and what it is that you’re checking for. The criteria is always
encapsulated in double quotation marks (“) and is not case sensitive.
=COUNTIF(C2:C23,"Toyota")
=COUNTIF(D2:D23,"Plumber")
To find how many tradespeople charge more than $70 per hour:
=COUNTIF(E2:E23,">70")
To find how many of the tradesmen’s names start in the last half of the alphabet:
=COUNTIF(B2:B23,">M")