COUNT IF Blank in Excel

“count if blank in excel” comes up constantly, so this page leads with the exact answer, gives you a tool to try it on your own numbers, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

In Excel: use =IF(logical_test, value_if_true, value_if_false) — it tests a condition and returns one value when the test is TRUE and another when it is FALSE.

Syntax

=IF(logical_test, value_if_true, value_if_false)

Arguments

ArgumentDescription
logical_testrequiredA condition that evaluates to TRUE or FALSE, such as A2>100.
value_if_truerequiredWhat the formula returns when the condition is TRUE.
value_if_falseoptionalWhat the formula returns when the condition is FALSE; optional but strongly recommended.

Related functions

IFERRORSUMIFCOUNTIF
ƒxFormula ExplainerLive
IF(SUMIFS(C2:C100, A2:A100, "West") > 1000, "On target", "Below")Tests a condition: returns the 2nd argument if true, the 3rd if false.
SUMIFS(C2:C100, A2:A100, "West") > 1000The left side is greater than the right side.
SUMIFS(C2:C100, A2:A100, "West")Adds the cells that match every listed condition.
C2:C100A reference to cells in your sheet.
A2:A100A reference to cells in your sheet.
"West"A fixed value typed directly into the formula.
1000A fixed value typed directly into the formula.
"On target"A fixed value typed directly into the formula.
"Below"A fixed value typed directly into the formula.
Runs entirely in your browser — your data never leaves this page.
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

IF is the core logical function in Excel: it checks a condition you write, then returns one result if the condition is TRUE and a different result if it is FALSE. You can return text, numbers, or other formulas, nest IFs to handle several cases, and combine IF with AND or OR to test more than one condition at once. It turns a sheet from static data into something that reacts to its values. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “count if blank in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected blanks change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a workflow that saves repeating the same clicks every week useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

Scores are in column B. In C2, =IF(B2>=60, "Pass", "Fail") returns "Pass" when B2 is 75 and "Fail" when B2 is 48. To grade with several bands, nest IFs: =IF(B2>=90, "A", IF(B2>=80, "B", IF(B2>=70, "C", "F"))). To require two conditions, combine with AND: =IF(AND(B2>=60, D2="yes"), "Eligible", "No"). IF is the foundation of decision logic in Excel; almost every report that flags, grades, or branches on its data is built on it. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. If you take one thing from this page on “count if blank in excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

Common mistakes

  • Omitting value_if_false, so the formula returns the unhelpful word FALSE instead of a result — use "" for a blank or supply a real value.
  • Forgetting quotes around text results, which makes Excel treat the words as undefined names and throw #NAME?.
  • Stacking five or more nested IFs that become unreadable — switch to IFS or a lookup table instead.

Frequently asked questions

How do I nest IF statements?

Put another IF in the value_if_false slot: =IF(B2>=90, "A", IF(B2>=80, "B", "C")). Each IF handles the next band. Beyond a few levels, IFS is cleaner and easier to read.

How do I use IF with two conditions?

Wrap the conditions in AND for "both must be true" or OR for "either", for example =IF(AND(B2>0, C2>0), "OK", "Check"). AND and OR each return a single TRUE or FALSE for IF to act on.

Is there a simpler alternative to many nested IFs?

Yes — IFS lets you list condition/result pairs without nesting: =IFS(B2>=90,"A", B2>=80,"B", B2>=70,"C", TRUE,"F"). It is available in Excel 2019 and Microsoft 365.