Text treated as a numeric value?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In the following equation I am trying to return a value if the cell contains
a number - I used if the cell is greater than zero but the formula is trating
a text value as true .... help?

=IF(I14>0,I14,IF(OR(I14="P",I14="E"),I$13,0))
 
Try this instead:

=IF(ISNUMBER(I14),I14,IF(OR(I14="P",I14="E"),I$13,0))

Hope this helps.

Pete
 
Hi,

If you are trying to eliminate neb=gative numbers then you need to test for
a number >0

=IF(AND(ISNUMBER(I14),I14>0),I14,IF(OR(I14="P",I14="E"),I$13,0))

Mike
 
betany70 said:
In the following equation I am trying to return a value if the cell
contains a number - I used if the cell is greater than zero but the
formula is trating a text value as true .... help?

=IF(I14>0,I14,IF(OR(I14="P",I14="E"),I$13,0))

So you want I14 only if it's a positive number? Try

=IF(N(I14)>0,I14,IF(OR(I14="P",I14="E"),I$13,0))
 
Back
Top