Return value
A logical value (TRUE or FALSE)
Usage notes
The ISNUMBER function returns TRUE when a cell contains a number, and FALSE if not. You can use ISNUMBER to check that a cell contains a numeric value, or that the result of another function is a number.
The ISNUMBER function takes one argument, value, which can be a cell reference, a formula, or a hardcoded value. Typically, value is entered as a cell reference like A1. When value is a number, the ISNUMBER function will return TRUE. Otherwise, ISNUMBER will return FALSE.
Examples
The ISNUMBER function returns TRUE if value is numeric:
=ISNUMBER("apple") // returns FALSE
=ISNUMBER(100) // returns TRUE
If cell A1 contains the number 100, ISNUMBER returns TRUE:
=ISNUMBER(A1) // returns TRUE
If a cell contains a formula, ISNUMBER checks the result of the formula:
=ISNUMBER(2+2) // returns TRUE
=ISNUMBER(2^3) // returns TRUE
=ISNUMBER(10 &" apples") // returns FALSE
Note: the ampersand (&) is the concatenation operator in Excel. When values are concatenated, the result is text.
Count numeric values
To count cells in a range that contain numbers, you can use the SUMPRODUCT function like this:
=SUMPRODUCT(--ISNUMBER(range))
The double negative coerces the TRUE and FALSE results from ISNUMBER into 1s and 0s and SUMPRODUCT sums the result.
Notes
- ISNUMBER will return TRUE for Excel dates and times since they are numeric.
- ISNUMBER will return FALSE for empty cells and errors.
Problem: The Excel Find and Replace dialog drives me crazy. I always have to go to the Options button to specify that it should look in Values. In the figure below, the mouse pointer is showing the value that Excel says is not there is actually there. Why can’t Excel find a number?
-
Psst, Excel! Try looking under the mouse pointer.
Strategy: You’ve pointed out a lot of the problems with Find and Replace. Let’s take a quick review to uncover some of the problems. First, when you select Home, Find & Select, Find, Excel presents the simplified version of the Find and Replace dialog without the important settings shown at the bottom of the figure above.
There are important settings hiding behind the Options button. These settings will often cause a Find to fail. Say that you have a calculation for sales tax in column D. Cell D3 shows 70.81 as the result of a formula. By default, Excel is searching the formulas instead of the values. If you tried Find without changing Formulas to Values, it will not find $70.81.
Searching the text of the formulas is a bit annoying. How often do you say to yourself, «Wow, I wonder in which cell I used the SQRTPI function?» But even more annoying are the other settings, such as Match Case and Match Entire Cell Contents. These settings can be useful, but if you happened to change them at 8:04 a.m. today and haven’t closed Excel since then, even though you’ve opened and closed 40 other workbooks and are working on something completely different, Excel will remember that previous setting. You will often get stung by a strange setting left behind earlier in the day, or even a setting changed when a macro tried to use the Find command with Match Entire Cell Contents turned on.
So why can’t Excel see the 1354.80 value in Fig 95? Excel is displaying cell C16 with a currency symbol and a comma, and in order to find the cell, you have to search for $1,354.80! Because Excel’s forte is numbers, it’s rather disappointing that Excel works like this. But when you understand it, you can work around it.
Additional Details: People often ask how they can search through all sheets in a workbook. You do this by changing the Within dropdown from Sheet to Workbook.
Additional Details: Amazingly, Excel can find cells that are displaying as number signs (#) instead of numbers. Say that you have a column where 5% of the numbers are showing as #####.
Now, any sane person would make the column wider or turn on Shrink to Fit, but Excel allows you to perform the following rather crazy set of steps:
- Select the range of numbers. Press Ctrl+F to display the Find dialog.
- Type ### in the Find What dialog.
- If the dialog is not showing the options, click the Options button.
- Ensure that Look In is set to Values and that Match Entire Cell Contents is not checked.
- Instead of clicking Find, click Find All. Excel adds a new section to the dialog, with a list of all the cells that contain ###.
- While the focus is still on the dialog, click Ctrl+A. This will select all the cells in the bottom of the Find All dialog.
You can now format just the selected cells. For example, you could choose fewer decimals or a smaller font size, or you could choose to display the numbers in thousands.
Gotcha: In Step 6, you are supposed to press Ctrl+A to select all of the found cells. Be careful that the focus is on the dialog box before pressing Ctrl+A. For example, if you change the font size, the focus would switch to the worksheet, even though the dialog is still displayed. Pressing Ctrl+A at this point would select all cells in the worksheet instead of just the matching cells. To reestablish focus on the dialog box, you need to click the title bar of the Find and Replace dialog.
In an excel sheet i have number in A colum.Suppose,in column a the number are as follows:
1
2
3
7
8
11
12
13
I need a formula in excel to find out only those numbers which are missing in the list.For example,in the above list,4,5,6,9,10 numbers are missing.
asked Apr 12, 2018 at 7:01
Here’s an updated version of the missing numbers formula using Aggregate
=IFERROR(AGGREGATE(15,6,ROW(INDEX(A:A,MIN(A$1:A$10)):INDEX(A:A,MAX(A$1:A$10)))/(COUNTIF(A$1:A$10,ROW(INDEX(A:A,MIN(A$1:A$10)):INDEX(A:A,MAX(A$1:A$10))))=0),ROW()),"")
answered Apr 12, 2018 at 7:43
Tom SharpeTom Sharpe
29.4k4 gold badges23 silver badges37 bronze badges
5
Try using a combination of COUNTIF and IF function.
Assuming the numbers in the list are in columns A1:A8 and the number in question is in B1, type this in a cell:
IF(COUNTIF($A$1:$A$8,$B$1) > 0, «IT EXISTS», «IT DOESN’T EXISTS»)
Some References:
COUNTIF Function
IF Function
answered Apr 12, 2018 at 7:12
ExistentExistent
6771 gold badge7 silver badges14 bronze badges