ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Text treated as a numeric value? (https://www.excelbanter.com/excel-discussion-misc-queries/151291-text-treated-numeric-value.html)

betany70

Text treated as a numeric value?
 
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))



Pete_UK

Text treated as a numeric value?
 
Try this instead:

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

Hope this helps.

Pete

On Jul 23, 5:30 pm, 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))




Toppers

Text treated as a numeric value?
 
try:

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

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



Mike H

Text treated as a numeric value?
 
Hi,

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

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

Mike

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



Harlan Grove[_2_]

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




All times are GMT +1. The time now is 04:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com