Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default 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))


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default 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))



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default 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))


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default 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))


  #5   Report Post  
Posted to microsoft.public.excel.misc
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))


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text value 0e00 still treated as a number? Frag Excel Discussion (Misc queries) 5 January 10th 07 05:58 PM
Numeric in Text to convert back to the form of Numeric for VLookup Purposes achilles Excel Discussion (Misc queries) 4 February 6th 06 07:05 AM
Formula Being treated as Text BBB Excel Worksheet Functions 2 September 20th 05 05:38 PM
Formula is treated as data dickhob Excel Discussion (Misc queries) 1 July 16th 05 03:46 AM
Empty cell treated as 0 Vincdc Charts and Charting in Excel 2 June 3rd 05 01:12 PM


All times are GMT +1. The time now is 01:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"