ISNUMBER is not working properly

michaelch2934

New Member
Joined
Sep 17, 2018
Messages
34
I have column B with either a numerical value or a letter text. In column M, I need to use only the numerical value and regard the text as 0.

In M, I entered =IF(ISNUMBER(B5),B5,0)

But, when B5=7, it returns a 0. When B5 is a T, it returns a 0 as well.

Column B is formatted as a Number (0 decimal places).

What am I doing wrong? Thanks in advance!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Most likely the 7 was entered as text and changing the cell format will not change it to a number.
Try:
=IF(ISNUMBER(B5+0),B5+0,0)
 
Upvote 0
By hokies, it worked. Thanks AhoyNC. Even though I had checked for Column B as Number before, this seems to have fixed the problem.
 
Upvote 0
Hi,

If you have IFERROR, you can also do this:


Book1
BCM
577
6Text0
71010
Sheet275
Cell Formulas
RangeFormula
M5=IFERROR(B5+0,0)


B5 and B7 ( 7, 10 ) were entered as Text.
 
Last edited:
Upvote 0
Thanks. Yes, adding the +0 did the trick. Now, why didn't it work without it? Or is this just a glitch we have to always work around?
 
Upvote 0
Any math done to a Number stored as Text converts it to a Real Number, by adding 0, we're not changing the original intended value.
You can also use B5*1, or --B5, which does the same.
 
Upvote 0
You can also use the VALUE function on numbers that are stored as text i.e.

VALUE(B5)

will convert a text number in cell B5 to its value.
 
Upvote 0
Or if you do convert the column to proper numbers / text (using Text to Columns) you could also just use:

=N(B5)
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top