To make Excel return "TRUE" if a cell is not blank, use the formula =NOT(ISBLANK(A1)) or the shorter =A1&""<>"". These formulas check whether a cell contains any data, including spaces or invisible characters, and return a boolean TRUE value if the cell is occupied, and FALSE if it is empty.

This logic is essential for data validation, creating dynamic dashboards, and managing large spreadsheets where you only want calculations to run when a specific input has been provided. By identifying non-blank cells, you can prevent errors like #DIV/0! or #VALUE! that often occur when a formula tries to calculate based on an empty cell. Understanding the nuance between a truly empty cell and a cell that looks empty but contains a formula returning an empty string is the key to mastering this process.

What You'll Need

  • A computer with Microsoft Excel installed (all versions from 2007 to Microsoft 365) or a compatible spreadsheet program like Google Sheets.
  • A dataset containing a mix of filled and empty cells to test the logic.
  • Basic familiarity with selecting cells and entering formulas into the formula bar.

Step-by-Step

  1. Identify your Target Cell: Locate the cell you want to check for content. For this example, we will assume the data is in cell A2.
  2. Select the Output Cell: Click on the cell where you want the "TRUE" or "FALSE" result to appear (for example, cell B2).
  3. Enter the ISBLANK Formula: Type =ISBLANK(A2). This specific function checks if a cell is empty. However, ISBLANK returns TRUE if the cell is empty. Since you want the opposite (TRUE if NOT blank), you must wrap it in a NOT function.
  4. Apply the NOT Logic: Change your formula to =NOT(ISBLANK(A2)). Now, if A2 has any value, the ISBLANK part returns FALSE, and the NOT part flips it to TRUE.
  5. Press Enter: Once you hit Enter, Excel will display TRUE if there is data in A2 and FALSE if it is completely empty.
  6. Alternative Method (The Inequality Operator): If you prefer a shorter syntax, type =A2<>"". In Excel, the symbols <> mean "is not equal to," and "" represents an empty string. This tells Excel: "Is the content of A2 not equal to nothing?"
  7. Handling Formula-Driven Blanks: If cell A2 contains a formula that results in an empty string (e.g., =IF(1=1, "", "Data")), the ISBLANK function will technically see the cell as NOT blank because it contains a formula. To treat these as blank, use the inequality method: =A2&""<>"". Adding the &"" ensures that the cell content is treated as text, making the check more robust.
  8. Drag to Fill: Hover your mouse over the bottom-right corner of cell B2 until the cursor becomes a small black cross (the Fill Handle). Click and drag downward to apply this logic to the rest of your column.

Common Mistakes

One of the most frequent errors is confusing the ISBLANK function with a visual check. A cell may look empty to the human eye, but it might contain a space character (created by hitting the spacebar) or a non-printing character imported from a database. In these cases, ISBLANK will return FALSE (meaning it is not blank), which can lead to confusion when your "TRUE" result appears for a cell that looks empty.

Another common mistake is forgetting the quotation marks in the inequality formula. Writing =A2<> without the "" will result in a formula error because Excel expects a value or reference to compare against. The double quotes are mandatory to define a null string.

Users also often forget that ISBLANK only recognizes cells that are truly empty. If a cell has a formula that returns an empty result, ISBLANK considers that cell "filled" because the formula itself is content. This is why the <>"" method is generally preferred by advanced users.

Tips

If you want the cell to display something other than "TRUE" or "FALSE," wrap your logic inside a standard IF statement. For example, =IF(NOT(ISBLANK(A2)), "Complete", "Missing") will replace the boolean TRUE with the word "Complete" and FALSE with "Missing." This makes your spreadsheet much more readable for other users.

To make your spreadsheet visually intuitive, combine this formula with Conditional Formatting. You can set a rule that says: if the formula =NOT(ISBLANK(A2)) is TRUE, then fill the cell with a green background. This allows you to see at a glance which rows have been filled without reading the text results.

For those dealing with massive datasets, consider using the COUNTA function. =COUNTA(A2)>0 achieves the same result as the not-blank check. COUNTA counts how many cells in a range are not empty. If the count is greater than zero, it means the cell is not blank.

Troubleshooting

If your formula is returning TRUE for a cell that looks empty, first check for hidden spaces. Click into the cell and press Backspace or Delete. If the formula suddenly switches to FALSE, you had a space character in the cell. To fix this across a whole column, you can use the TRIM function, which removes leading and trailing spaces: =NOT(ISBLANK(TRIM(A2))).

If you see a #NAME? error, it usually means there is a typo in the function name. Ensure you have spelled ISBLANK and NOT correctly. Check that you haven't accidentally put a space between the function name and the opening parenthesis.

If the formula simply displays as text (e.g., you see =A2&""<>"" written in the cell instead of TRUE), the cell is likely formatted as "Text" instead of "General." To fix this, select the cell, go to the Home tab, change the Number Format dropdown to "General," and then double-click the cell and press Enter to re-trigger the calculation.

Frequently Asked Questions

Does this work in Google Sheets?

Yes, both =NOT(ISBLANK(A1)) and =A1&""<>"" work identically in Google Sheets as they do in Microsoft Excel.

What is the difference between ISBLANK and the inequality operator?

ISBLANK only returns TRUE if the cell is completely empty. The inequality operator (<>"") returns TRUE if the cell contains any value, but it also correctly identifies cells containing formulas that return an empty string as being "blank."

Can I check multiple cells at once?

You cannot check multiple cells with a single ISBLANK function, but you can use =COUNTA(A1:A10)>0 to see if any cell in that range is not blank.

How do I make it return FALSE if the cell is not blank?

Simply remove the NOT function and use =ISBLANK(A1). This will return TRUE if the cell is empty and FALSE if it contains data.

Will a zero (0) be counted as blank?

No. A zero is a numerical value. Both ISBLANK and the inequality operator will treat a cell containing 0 as "not blank" and return TRUE.

Can I use this to hide rows?

While the formula itself cannot hide a row, you can use the TRUE/FALSE results as a helper column. You can then apply a Filter to that column to show only the TRUE values, effectively hiding all blank rows.