Google Sheets Is Not Blank: Choose the Right Test

To check that a Google Sheets cell isn't blank, compare it with an empty string (<>"") if formulas that display nothing should count as empty. Use NOT with ISBLANK to count all stored content as filled.

A space or a formula can make a cell look empty even when it contains something. Choose how to count those cells before copying your test down a column, or you could end up with the wrong list of records.

Choose between visible value and stored content

Start with a cell whose contents you know. These examples check A2; replace that reference with the cell you want to check. Enter the test in a different, empty cell.

This first version checks whether A2 has a value other than an empty string:

=A2<>""

Press Enter. A name, number, or space in the source produces TRUE. A genuinely empty cell, or a formula whose result is an empty string, returns FALSE.

Drawing of the Google Sheets formula bar with a not-equal-to-empty-string test

The two angle brackets form the not-equal operator. The paired quotes represent an empty string, which is text containing no characters. They aren't a place to type the word blank.

For a strict check of whether the cell contains anything at all, use this instead:

=NOT(ISBLANK(A2))

Google's ISBLANK reference explains that spaces, hidden characters, and empty strings are content. ISBLANK returns FALSE for those cells; NOT reverses that result to TRUE.

I'd use the first test for a report where unused formula rows should look empty. Use the strict test when you need to know whether someone has entered anything at all, including a formula that displays nothing.

Check the cases that can change your result

Use a small spare area of the sheet to check the rule before applying it to your records. Compare a genuinely empty cell, an ordinary word, the number zero, a space, and this formula:

=""

That formula displays no text, but it still occupies the cell. The value test returns FALSE for it. The strict NOT and ISBLANK test returns TRUE. That difference explains why a blank check can return a result you didn't expect.

Zero is a number, so both tests treat it as filled. If zero is a valid entry, don't use the source cell itself as a simple TRUE/FALSE condition. Test whether it's empty so that a zero doesn't get mistaken for missing data.

A space is text even though it's hard to see. Both opening tests count it as content. Click a suspicious cell and inspect its formula bar before deciding that the formula has calculated incorrectly.

Choose a disposable test cell, clear its contents, then repeat the strict test. A change from TRUE to FALSE confirms there was something stored there. Don't clear an important source cell just to make a report's count look right.

Show a label or calculate only on filled rows

Wrap the condition inside IF when you want a useful result instead of TRUE or FALSE. This example labels rows that have a nonempty value in A2:

=IF(A2<>"","Ready","")

A filled entry shows Ready; an empty value leaves the result visually empty. Keep the formula outside A2 so it doesn't replace the data it is supposed to check.

For a calculation, suppose A2 contains a quantity and B2 contains its price. This version waits for a nonempty quantity:

=IF(A2<>"",A2*B2,"")

It checks only A2. If the calculation needs both quantity and price, use AND to require both values. Don't assume that checking one input also checks every other cell used by the calculation.

=IF(AND(A2<>"",B2<>""),A2*B2,"")

Copy the formula down after checking one filled row and one unfinished row. As you fill down, references such as A2 and B2 change to match the next row. Read a later formula to confirm it is checking that row.

If logical tests are getting difficult to follow, the Google Sheets NOT examples explain how reversing TRUE and FALSE changes a condition. Choose the blank rule first, then build the rest around it.

Ignore ordinary spaces when they shouldn't count

For text-entry columns where spaces should count as empty, use a helper formula that trims the text and measures its length:

=LEN(TRIM(A2))>0

TRIM strips ordinary spaces from each end of the text and leaves one space between words. LEN then measures the cleaned text. An entry made entirely of spaces returns FALSE; text containing a word returns TRUE.

Unlike ISBLANK, this test treats some stored text as empty. Use it for the column where you want spaces ignored, rather than replacing every blank check in the workbook.

TRIM doesn't remove every invisible character, including nonbreaking spaces. Imported data can therefore still need cleaning. Check the troublesome entry in the formula bar and look at its character count before deciding what to remove.

Keep a copy of source data before a bulk cleanup. A helper column lets you see which records the rule would accept without immediately changing the original entries.

Count filled cells without mixing definitions

Use =COUNTA(A2:A100) when you want to count stored values in a range. It includes repeated values, whitespace, and zero-length strings, so a formula that produces an empty string can increase the count.

COUNTBLANK uses a different rule: it counts truly empty cells and cells containing an empty string. That means COUNTA and COUNTBLANK aren't always opposite pieces of the same total when formulas return empty strings.

Decide whether you want to count cells with stored content or cells showing a result. Don't switch between functions just because one returns the number you expected. Check a few known rows and explain the rule in the summary's heading.

For a list of qualifying records rather than a total, use a helper column and a Google Sheets filter. The helper's TRUE/FALSE results make it easier to inspect why a row was included.

Fix a formula error before extending the rule

Use straight quotation marks, paired parentheses, and an initial equals sign. Depending on the spreadsheet's region, functions may need semicolon separators. Replace the example commas when your sheet uses that format.

If the error persists, open Help > Help and post to the Docs Editors community. Include the formula, a small example, and whether a supposedly empty cell contains a formula or spaces. Remove private records before sharing the example.

The Short Version

Compare with an empty string to ignore empty-string results. NOT with ISBLANK detects stored content. Handle spaces separately when needed, then apply the same definition to labels, calculations, and counts.

Checked December 4, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment