View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Harlan Grove[_2_] Harlan Grove[_2_] is offline
external usenet poster
 
Posts: 1,231
Default Text treated as a numeric value?

"betany70" wrote...
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(I140,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))