Today, Saturday, July 4, 2026, marks the 250th anniversary of the signing of the Declaration of Independence. Two and a half centuries ago, fifty-six men pledged their lives, their fortunes, and their sacred honor to a cause built on unity — the idea that thirteen separate colonies could be counted, and act, as one. Benjamin Franklin captured that idea perfectly in 1754 with his famous "Join, or Die" cartoon, urging the colonies to stop counting themselves separately and start counting themselves together.
As it turns out, Excel has its own version of this problem: how you count depends entirely on how your data is organized — and choosing the wrong counting tool can leave you as disunited as the colonies were before Franklin's snake. So in the spirit of the anniversary, let's take a page from 1775 and meet two very different record-keepers who are trying to count the very same population.
It is 1775, and King George III, ever the bureaucrat, insists that every English citizen in the colonies be assigned a Royal Subject ID number — and his clerks count them strictly by those numbers. Meanwhile, Boston's colonial administrators want to count Massachusetts citizens the way they have always been known: by their God-given names. Same people, same city, very different spreadsheets.
👑 King George's Roster
Column B = Royal Subject ID (numbers)
| A Last Name |
B Subject ID |
C Weapon |
| Adams | 1001 | Musket |
| Hancock | 1002 | Musket |
| Revere | 1003 | Musket |
| Otis | 1004 | None |
| Warren | 1005 | Musket |
| =COUNT(B2:B6) → 5 ✓ =COUNTA(A2:A6) → 5 ✓ |
||
🦅 Boston's Roster
Column A = Full Name (text)
| A Full Name |
B Weapon |
C Allegiance |
| Samuel Adams | Musket | Patriot |
| John Hancock | Musket | Patriot |
| Paul Revere | Musket | Patriot |
| James Otis | None | Loyalist |
| Joseph Warren | Musket | Patriot |
| =COUNT(A2:A6) → 0 ✗ =COUNTA(A2:A6) → 5 ✓ |
||
That contrast captures the essential difference between Excel's four counting functions: COUNT, COUNTA, COUNTIF, and COUNTIFS. Each one answers a different kind of question. Here is what separates them — and when each one is your best tool.
COUNT — King George's way: count citizens by their ID numbers
COUNT tallies only cells that contain a number. It ignores blanks and any cell holding text. If King George's roster uses numeric Subject IDs in column B, COUNT is his function. But hand that same formula to Boston's administrators, whose list uses names instead of numbers, and COUNT returns zero — not very helpful for a town meeting.
- Click the cell where you want the result to appear.
- Type =COUNT( and select the range containing the numeric IDs — for example, B2:B6.
- Close the parenthesis and press Enter: =COUNT(B2:B6)
COUNTA — Boston's way: count citizens by their God-given names
COUNTA counts any non-empty cell — numbers, text, dates, you name it. Where COUNT would skip right past "Samuel Adams" and "John Hancock," COUNTA counts every name without missing a soul. This is the function Boston's colonial administrators actually need.
- Click the cell where you want the result to appear.
- Type =COUNTA( and select the range containing the names — for example, A2:A6.
- Close the parenthesis and press Enter: =COUNTA(A2:A6)
COUNTIF — How many citizens own muskets?
COUNTIF counts cells that meet a single condition. It takes two arguments: the range to evaluate, and the criteria to match. Perfect when you need to filter the count by one specific factor.
- Click the cell where you want the result.
- Type =COUNTIF( followed by the range that contains the data to test — for example, column B, which lists weapon ownership: B2:B6.
- Add a comma, then the criteria in quotes — for example, "Musket".
- Close and press Enter: =COUNTIF(B2:B6,"Musket")
COUNTIFS — How many musket-owning patriots are there in Boston?
COUNTIFS is the power version. It lets you apply multiple conditions at once — each condition gets its own range and criteria pair, and Excel only counts rows where all conditions are true simultaneously.
- Click the cell where you want the result.
- Type =COUNTIFS( and provide the first range and its criteria — column B for weapon ownership: B2:B6,"Musket"
- Add a comma, then the second range and its criteria — column C for allegiance: C2:C6,"Patriot"
- Close and press Enter: =COUNTIFS(B2:B6,"Musket",C2:C6,"Patriot")
- You can keep adding additional range/criteria pairs as needed — COUNTIFS handles them all.
The takeaway
Use COUNT for raw numeric totals, COUNTA when your data is stored as text or a mix of types, COUNTIF when one condition narrows the count, and COUNTIFS when you need to filter by two or more criteria at the same time. Together, these four functions cover nearly every counting scenario you will encounter in the real world.
Two hundred fifty years ago, the Founders learned that how you count a population determines what you can do with that information. This Independence Day, take a moment to make sure your own spreadsheets are counting things the right way, too.
Enjoying This TechMentors Tip?
Subscribe to the TechMentors Tips and Tricks Newsletter for more practical technology tips and links to new articles.
© 2026 TechMentors LLC. All rights reserved.