The ISNUMBER function in Excel returns TRUE if the value it checks is a number and FALSE if it is anything else, and pairing it with IF lets you display a friendly result, such as "Valid" or "Check entry", instead of a raw TRUE/FALSE. The typical pattern is =IF(ISNUMBER(A1),"Yes","No"). Nothing extra needs installing: ISNUMBER is a built-in function available in every version of Excel, including Excel for Microsoft 365, Excel for Mac, and Excel for the web. The only thing you need is a cell or formula result to test.
What You'll Need
- Excel for Microsoft 365, Excel 2021 or 2019, Excel for Mac, or Excel for the web (the function exists in older versions too, but menu labels can differ slightly by version, device and region).
- A worksheet with at least one column of data you want to test.
- Basic familiarity with typing a formula in a cell and pressing Enter (or Return on Mac).
Step-by-Step
- Click an empty helper cell next to the first row of data you want to check, for example B2 if your values start in A2.
- Type a bare ISNUMBER test first so you can see what it returns before adding IF:
=ISNUMBER(A2). Press Enter. If A2 contains 150, the cell shows TRUE. If A2 contains "150" typed as text, the cell shows FALSE. - Wrap it in IF to turn TRUE/FALSE into words:
=IF(ISNUMBER(A2),"Valid","Not a number"). Replace the two labels with whatever makes sense for your sheet, such as "OK" and "Review". Text outputs must be inside double quotes. - Test a whole range at once if you want a single summary, for example whether every value in A2:A100 is numeric. Type
=IF(COUNT(A2:A100)=ROWS(A2:A100),"All numbers","Some non-numbers found"). COUNT only counts numeric cells, so comparing it to the row count tells you whether anything was skipped. - Pull the row number or flag rows with a dynamic-array formula, for example
=IF(ISNUMBER(SEARCH("-",A2)),"Has dash","No dash"). This checks whether a hyphen exists, which is handy when codes mix text and digits. - Copy the formula down by dragging the fill handle in the bottom-right corner of the cell, or double-click it if the adjacent column is filled. Relative references adjust automatically.
- Verify the results by comparing a few rows by eye. A common surprise is a value that looks like a number but is actually text, because it was pasted from a web page or exported from another system; ISNUMBER will correctly flag those as FALSE.
- Convert legitimate text-numbers if the FALSE results are wrong. Select the column, then use Data > Text to Columns and click Finish without changing anything. Excel re-evaluates each cell and converts clean numeric text into real numbers. For a single cell, multiplying by 1 or using
=VALUE(A2)also works. - Freeze the output if you no longer need the formula, by selecting the helper column, copying it, and using Paste Special > Values. This replaces live formulas with plain results, which is convenient before sorting or sharing the file.
Common Mistakes
Confusing ISNUMBER with ISTEXT. A cell can be text that looks numeric, such as "0042". ISNUMBER returns FALSE for it. If you want to know whether a value is numeric in any form, combine both: =IF(OR(ISNUMBER(A2),ISTEXT(A2)),"Has content","Empty").
Forgetting that empty cells are not numbers. A blank cell makes ISNUMBER return FALSE. If blanks should show as blank rather than an error label, add an ISBLANK check: =IF(ISBLANK(A2),"",IF(ISNUMBER(A2),"Valid","Invalid")).
Checking the wrong reference. When you copy a formula sideways rather than down, Excel shifts the column instead of the row. Add a dollar sign to lock the part that should not move, for example =$A2.
Quoting the number. Writing =IF(ISNUMBER("150"),...) tests a text string and returns FALSE. Test the cell reference instead of typing the value into the formula.
Expecting ISNUMBER to spot numbers inside longer text. It checks the whole cell. "Room 12" is text, not a number, even though it contains digits. Use SEARCH or VALUE to extract the digits first if that is what you need.
Tips
Use the ERROR.TYPE or ISERROR family alongside ISNUMBER when you are testing formula output, because an error value such as #N/A is not a number and ISNUMBER will return FALSE for it. Combine ISNUMBER with MATCH to test membership: =IF(ISNUMBER(MATCH(A2,List,0)),"In list","Not in list") where List is a named range or range reference. That pattern replaces a VLOOKUP error check and is easier to read.
For conditional formatting, select the range, choose Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter =ISNUMBER(A2) with the top-left cell of the selection as the reference. Excel applies the rule to every cell in the range automatically. Use ISNUMBER rather than manually retyping rules per column; it keeps the sheet maintainable.
Keep the TRUE and FALSE labels short. Long text strings in a narrow column get truncated or overflow into neighbouring cells, which makes the sheet harder to read at a glance. If you plan to filter on the result later, consistent spelling matters more than screen width.
Remember that ISNUMBER does not change the underlying cell; it only reports. If you paste the results and delete the helper column, the original data is untouched. Always keep a copy of the original data before applying bulk conversions.
Troubleshooting
The formula shows #NAME? Excel does not recognise the function name. Check that ISNUMBER is spelled in full with no spaces, and that commas separate the arguments in an English-locale setup. In some locales the separator is a semicolon instead of a comma; if the formula was typed using the wrong separator, Excel flags it as an error.
The formula shows the function text instead of a result. The cell is formatted as Text. Select it, set the number format to General, then press F2 and Enter to re-enter the formula, or re-type it from scratch.
Every result is FALSE. Suspect pasted text. Look at the alignment: text values align left, real numbers align right. If the column is uniformly left-aligned, you likely have text throughout. Run Data > Text to Columns, or check the source system's export settings.
The result is #VALUE!. An argument is malformed, most often a missing closed quote around a label or an extra comma. Excel's formula bar will usually highlight the problem; delete back to a clean formula and retype it slowly.
The copied formula tests the wrong row. This is a relative-reference problem. Check the formula bar in each copied cell and confirm the row numbers are changing as expected. Lock rows with a dollar sign if they should stay fixed.
Nothing changed after the conversion. Recalculate by pressing F9, or check whether the workbook is in Manual calculation mode under Formulas > Calculation Options. Switching to Automatic recalculates the sheet the next time anything changes.
Frequently Asked Questions
What does ISNUMBER return for a date?
TRUE. Excel stores dates as numbers, so a cell containing a real date is treated as numeric. If you want to exclude dates from a numeric check, combine the test with ISBLANK and a range check on the value.
Can ISNUMBER tell me if a whole column is numeric?
Not on its own. Compare COUNT of the range with ROWS of the range, as shown in the steps, or use COUNTA to include text cells in the comparison.
Does ISNUMBER work on formula results?
Yes. It tests the result the cell displays, not the formula text. If the formula returns an error value, ISNUMBER returns FALSE rather than raising its own error.
Why does a cell that looks like a number return FALSE?
It is text formatted to resemble a number, often from a copy-paste or a CSV export. Convert it with Text to Columns, or test it with a VALUE formula first.
Is ISNUMBER available in Excel for the web?
Yes, it is a core function included in the desktop and browser versions. The menus around it may look slightly different, but the formula syntax is the same.
Can I use ISNUMBER with conditional formatting on another sheet?
Yes. In the conditional formatting rule, reference the other sheet's cells directly in the formula, keeping the reference relative to the top-left cell of the selected range.