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
Adams1001Musket
Hancock1002Musket
Revere1003Musket
Otis1004None
Warren1005Musket
=COUNT(B2:B6) → 5
=COUNTA(A2:A6) → 5

🦅 Boston's Roster
Column A = Full Name (text)

A
Full Name
B
Weapon
C
Allegiance
Samuel AdamsMusketPatriot
John HancockMusketPatriot
Paul RevereMusketPatriot
James OtisNoneLoyalist
Joseph WarrenMusketPatriot
=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.

  1. Click the cell where you want the result to appear.
  2. Type =COUNT( and select the range containing the numeric IDs — for example, B2:B6.
  3. Close the parenthesis and press Enter: =COUNT(B2:B6)
Outcome: Excel returns the total count of numeric entries in that range. Perfect when your records are identified by numbers — but useless if they are stored as names or text.

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.

  1. Click the cell where you want the result to appear.
  2. Type =COUNTA( and select the range containing the names — for example, A2:A6.
  3. Close the parenthesis and press Enter: =COUNTA(A2:A6)
Outcome: Every non-blank cell is counted regardless of whether it holds a name, a date, or a number — your full Boston headcount, no ID numbers required.

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.

  1. Click the cell where you want the result.
  2. Type =COUNTIF( followed by the range that contains the data to test — for example, column B, which lists weapon ownership: B2:B6.
  3. Add a comma, then the criteria in quotes — for example, "Musket".
  4. Close and press Enter: =COUNTIF(B2:B6,"Musket")
Outcome: Excel returns only the count of citizens who own a musket — precisely the answer Paul Revere would have wanted before his ride.

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.

  1. Click the cell where you want the result.
  2. Type =COUNTIFS( and provide the first range and its criteria — column B for weapon ownership: B2:B6,"Musket"
  3. Add a comma, then the second range and its criteria — column C for allegiance: C2:C6,"Patriot"
  4. Close and press Enter: =COUNTIFS(B2:B6,"Musket",C2:C6,"Patriot")
  5. You can keep adding additional range/criteria pairs as needed — COUNTIFS handles them all.
Outcome: Excel returns only the count of Boston residents who both own a musket AND are patriots — exactly the kind of targeted intelligence that could change history.

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.

About the featured image: "Join, or Die." is Benjamin Franklin's 1754 political cartoon urging the American colonies to unite — fittingly, it's built entirely around the idea of counting separate pieces as one whole. The image is in the public domain and is hosted by the Library of Congress Prints & Photographs Division (Reproduction Number LC-USZC4-5315). No permission or attribution is legally required, though crediting the Library of Congress is good practice.

Enjoying This TechMentors Tip?

Subscribe to the TechMentors Tips and Tricks Newsletter for more practical technology tips and links to new articles.

Subscribe to the Newsletter

© 2026 TechMentors LLC. All rights reserved.