To identify if a cell is "not a number" in Excel, use the formula =NOT(ISNUMBER(A1)). This combination tells Excel to check if the cell contains a number and then reverse that result, returning TRUE if the cell contains text, errors, or is blank, and FALSE if it contains a valid number.

This process is essential for data cleaning, especially when importing data from external software where numbers might be stored as text. By identifying non-numeric cells, you can prevent calculation errors like #VALUE! and ensure your SUM or AVERAGE functions work correctly.

What You'll Need

  • A version of Microsoft Excel (Office 365, Excel 2021, 2019, or earlier).
  • A dataset containing a mix of numbers, text, or symbols that you need to audit.

Step-by-Step

  1. Identify your target cell: Locate the cell you want to check. For this guide, we will assume your data starts in cell A1.
  2. Select an adjacent empty cell: Click on cell B1 (or any empty column next to your data) where you want the "True/False" result to appear.
  3. Enter the formula: Type the following formula exactly as shown: =NOT(ISNUMBER(A1)).
  4. Press Enter: Once you hit Enter, Excel will evaluate the cell.
    • If the result is TRUE, the cell is NOT a number (it is text, a blank, or an error).
    • If the result is FALSE, the cell IS a number.
  5. Apply to the entire column: Hover your mouse over the bottom-right corner of cell B1 until the cursor turns into a small black cross (the Fill Handle). Double-click the cross or click and drag it down to the bottom of your dataset to apply the formula to all rows.
  6. (Optional) Filter the results: To quickly see only the "not a number" cells, go to the Data tab and click Filter. Click the filter arrow in the header of column B and uncheck "FALSE" to display only the TRUE values.

Common Mistakes

  • Confusing "Numbers stored as Text" with Numbers: If a number has an apostrophe before it (e.g., '100) or is formatted as text, ISNUMBER will see it as text. The NOT(ISNUMBER()) formula will return TRUE for these, even though they look like numbers to the human eye.
  • Ignoring Blank Cells: Excel treats blank cells as non-numbers. If your column has empty cells, the formula will return TRUE. If you only want to find actual text and ignore blanks, you will need a more complex formula like =AND(NOT(ISNUMBER(A1)), NOT(ISBLANK(A1))).
  • Misplacing Parentheses: The NOT function requires its own set of parentheses, and the ISNUMBER function requires its own. A common error is writing =NOT(ISNUMBER(A1 without the closing bracket, which triggers a formula error.

Tips

  • Use Conditional Formatting: Instead of a separate column, you can highlight non-numbers. Select your data range, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter =NOT(ISNUMBER(A1)). Set a red fill color to visually flag errors.
  • Combine with IF: If you want a custom message instead of TRUE/FALSE, use: =IF(NOT(ISNUMBER(A1)), "Check This Cell", "OK").
  • Quick Conversion: If you find many "numbers stored as text," you can often fix them by selecting the range, clicking the yellow warning diamond that appears, and selecting Convert to Number.

Troubleshooting

If the formula is not behaving as expected, try these steps in order:

  1. Check for Hidden Characters: Sometimes cells look like numbers but contain hidden spaces. Use the =TRIM(A1) function in a separate column to remove leading or trailing spaces, then run the ISNUMBER check on the trimmed cell.
  2. Verify Cell Formatting: Ensure the cell containing the formula is set to "General" formatting. If it is set to "Text," the formula will simply appear as a string of text rather than calculating. Change the format to General and press F2 then Enter to refresh the cell.
  3. Check for Formula Errors: If the cell you are checking contains an error like #N/A or #REF!, ISNUMBER will return FALSE, and NOT(ISNUMBER) will return TRUE. If you want to ignore errors and only find text, use =AND(NOT(ISNUMBER(A1)), NOT(ISERROR(A1))).

Frequently Asked Questions

Does this formula detect dates?

No, it will return FALSE (meaning it IS a number). In Excel, dates are actually stored as sequential serial numbers, so ISNUMBER recognizes them as numeric values.

Can I use this to find only text and ignore blanks?

Yes. Use the formula =ISTEXT(A1). Unlike NOT(ISNUMBER), which returns TRUE for blanks and errors, ISTEXT only returns TRUE if the cell contains a text string.

Why does a cell with a number return TRUE (Not a Number)?

This usually happens because the cell is formatted as Text. Even if it looks like a number, Excel treats it as a string of characters. You can fix this by changing the cell format to Number or using the "Text to Columns" feature to convert the data.

Is there a way to do this without a formula?

Yes. You can use Go To Special. Press Ctrl + G, click Special, select Constants, and uncheck "Numbers." This will highlight every cell in your selection that is not a number.

Does this work in Google Sheets?

Yes, the NOT and ISNUMBER functions work identically in Google Sheets as they do in Microsoft Excel.