Text treated as a numeric value?

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))
 
P

Pete_UK

Try this instead:

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

Hope this helps.

Pete
 
G

Guest

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
 
H

Harlan Grove

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))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top