The ISNUMBER function in Excel returns TRUE if the value in a cell is a number and FALSE if it is not. This is most commonly used to validate data, filter lists, or clean datasets to ensure only numeric entries are processed.

What You'll Need

  • A computer running Microsoft Excel (2016, 2019, 2021, or Microsoft 365).
  • A spreadsheet containing data with various data types (text, numbers, errors, and logical values).
  • Basic knowledge of how to select cells and type formulas.

Step-by-Step

  1. Select the cell where you want the result. Click on the empty cell where you want the TRUE or FALSE result to appear.
  2. Start the formula. Type an equals sign (=) to begin the formula.
  3. Type the function name. Enter the text ISNUMBER( exactly as shown. Excel will often auto-complete this for you if you start typing.
  4. Select the cell to check. Click on the cell that contains the value you want to verify. You can also type the cell reference (e.g., A1) manually. The formula should now look something like =ISNUMBER(A1).
  5. Close the parenthesis and press Enter. Type the closing parenthesis ) and hit the Enter key on your keyboard. The cell will now display either TRUE or FALSE.
  6. Drag the fill handle. To apply the formula to a range of adjacent cells, click on the bottom-right corner of the cell containing your formula (the fill handle) and drag it down or across to the other cells. Excel will automatically adjust the cell references for each row or column.

Common Mistakes

When working with the ISNUMBER function, users often encounter confusion regarding how Excel handles different data types. Understanding these common errors is key to getting accurate results.

1. Confusing Text and Numbers. The most frequent mistake is assuming that numbers stored as text are recognized as numbers. If a cell contains the text 100 (formatted as text), ISNUMBER will return FALSE. It only returns TRUE for values that are mathematically or logically numbers, such as 100, 0.5, or dates. To fix this, you may need to use the VALUE function to convert text-based numbers before checking them.

2. Overlooking Hidden Characters. Sometimes data imported from other sources (like CSV files or databases) contains invisible characters, such as non-breaking spaces or line breaks. A cell might look like it contains a number, but if there is a hidden space at the end, ISNUMBER will return FALSE. Using the TRIM function before ISNUMBER can often resolve this by removing excess whitespace.

3. Misinterpreting Dates. In Excel, dates are stored as serial numbers. Because they are stored as numbers, ISNUMBER will return TRUE for any valid date. Users often find this surprising. If you want to distinguish between a date and a simple number, you should use the ISDATE function (available in some newer versions of Excel) or combine ISNUMBER with additional checks.

Tips

Using ISNUMBER effectively requires a bit of strategy, especially when cleaning messy data. These tips will help you integrate the function into your workflow more smoothly.

Use with Conditional Formatting. You can use ISNUMBER within a Conditional Formatting rule to visually highlight cells that contain numbers. For example, select your data range, go to Home > Conditional Formatting > New Rule, choose “Use a formula to determine which cells to format,” and enter =ISNUMBER(A1). This will color-code all numeric entries, making it easy to spot them in a large dataset.

Combine with IF for Actionable Results. While ISNUMBER returns a boolean value, you often want to perform an action based on that result. The IF function is perfect for this. For instance, =IF(ISNUMBER(A1), "Valid", "Invalid") will display the word “Valid” if the cell contains a number and “Invalid” if it does not. This is excellent for data validation forms.

Check for Specific Numeric Ranges. ISNUMBER is a binary check—it only tells you if something is a number. If you need to check if a number falls within a specific range (e.g., between 1 and 100), you must nest it inside an AND function. The formula would look like =AND(ISNUMBER(A1), A1>=1, A1<=100). This returns TRUE only if the cell contains a number that is also greater than or equal to 1 and less than or equal to 100.

Troubleshooting

If your ISNUMBER formula is not working as expected, the issue is usually one of three things: data type mismatch, hidden characters, or incorrect cell referencing.

Check for Hidden Characters. If a cell looks like it contains a number but returns FALSE, the issue is likely an invisible character. Copy the contents of the cell into a text editor (like Notepad on Windows or TextEdit on Mac) and look for stray spaces or symbols. To clean the data in Excel, use the TRIM function: =ISNUMBER(TRIM(A1)). If this returns TRUE, you had a space issue.

Verify Data Type Formatting. Sometimes a cell is formatted to look like a number, but Excel treats it as text. You can check the cell's formatting by right-clicking the cell and selecting Format Cells. If the number category is selected, but the cell still returns FALSE, the data might be entered with a leading apostrophe ('123), which forces Excel to treat it as text.

Formula Reference Errors. Ensure that you are referencing the correct cell. A common mistake is dragging the fill handle without realizing that the reference locked incorrectly (e.g., using $A$1 instead of A1). If you want the formula to check every single cell in the column relative to its row, make sure the row number in the reference changes as you drag it down.

Frequently Asked Questions

Will ISNUMBER return TRUE for dates?

Yes. In Excel, dates are stored as serial numbers. Therefore, ISNUMBER recognizes dates as numeric values and returns TRUE.

Does ISNUMBER work with currency symbols?

No. Text that includes a currency symbol (e.g., “$50”) is considered text, not a number. ISNUMBER will return FALSE for these cells.

How do I check if a cell contains a number AND is positive?

You need to nest the ISNUMBER function inside an IF statement combined with a comparison operator. For example, =IF(AND(ISNUMBER(A1), A1>0), "Positive Number", "Not a Positive Number").

What is the difference between ISNUMBER and ISTEXT?

They are opposites. ISNUMBER returns TRUE if the cell is a number and FALSE otherwise. ISTEXT returns TRUE if the cell contains text and FALSE otherwise.

Can I use ISNUMBER to count numeric cells in a range?

Yes, you can combine ISNUMBER with the SUMPRODUCT function. The formula =SUMPRODUCT(--ISNUMBER(A1:A10)) will count how many cells in the range A1:A10 contain numbers.

Why does my formula return #VALUE!?

This error usually means the argument provided to the function is not a valid cell reference or value. Ensure that the cell you are referencing actually exists in your sheet and is not blank or corrupted.