Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

Ok, I'm nuts. I retrieve data constantly into an existing workbook.
Where the data is zero, when imported, it comes in as text, thus
causing #div/0! errors. Of course, I've included an IF function that
should return N/A or heck - I'd take a 'zero' at this point. Nadda.
Below is the formula I'm using and I'd appreciate an adjustment to get
this one right! =IF(D91=0,0,D71/D91). Function won't accept =IF(D91="
",0,D71/D91). Suggestion? Thx.

  #2   Report Post  
Posted to microsoft.public.excel.misc
ScottO
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

This might do it ...
=IF(AND(ISNUMBER(D91),D91<0),D71/D91,"More zero data!")
Rgds,
ScottO

wrote in message
oups.com...
| Ok, I'm nuts. I retrieve data constantly into an existing
workbook.
| Where the data is zero, when imported, it comes in as text, thus
| causing #div/0! errors. Of course, I've included an IF function
that
| should return N/A or heck - I'd take a 'zero' at this point.
Nadda.
| Below is the formula I'm using and I'd appreciate an adjustment to
get
| this one right! =IF(D91=0,0,D71/D91). Function won't accept
=IF(D91="
| ",0,D71/D91). Suggestion? Thx.
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
Anne Troy
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

Try this instead:
=IF(isblank(D91),0,D71/D91)
or this:
=IF(iserror(d71/d91),0,d71/d91)

************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

wrote in message
oups.com...
Ok, I'm nuts. I retrieve data constantly into an existing workbook.
Where the data is zero, when imported, it comes in as text, thus
causing #div/0! errors. Of course, I've included an IF function that
should return N/A or heck - I'd take a 'zero' at this point. Nadda.
Below is the formula I'm using and I'd appreciate an adjustment to get
this one right! =IF(D91=0,0,D71/D91). Function won't accept =IF(D91="
",0,D71/D91). Suggestion? Thx.



  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

Hi ScottO,

One thing that this formula won't do is to return the appropriate value
when there is real data vs text. Could I ask for a further suggestion?
Thx. again.

lk


ScottO wrote:
This might do it ...
=IF(AND(ISNUMBER(D91),D91<0),D71/D91,"More zero data!")
Rgds,
ScottO

wrote in message
oups.com...
| Ok, I'm nuts. I retrieve data constantly into an existing
workbook.
| Where the data is zero, when imported, it comes in as text, thus
| causing #div/0! errors. Of course, I've included an IF function
that
| should return N/A or heck - I'd take a 'zero' at this point.
Nadda.
| Below is the formula I'm using and I'd appreciate an adjustment to
get
| this one right! =IF(D91=0,0,D71/D91). Function won't accept
=IF(D91="
| ",0,D71/D91). Suggestion? Thx.
|


  #5   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

... appreciate an adjustment to get
this one right! =IF(D91=0,0,D71/D91).


Try this adjustment: =IF(D91+0=0,0,D71/D91)

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




  #6   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

=IF(N(D91),D71/D91,0)

  #7   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

Hi Max, I've tried the formula above and where I do have data, the
result returned = 0 vs the correct number. Do you have an alternate
suggestion? Thx.

  #8   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

Hi Annie, I've tried the formulas above and where I have actual data
vs. text, the results returned are 0 vs the appropriate answer. Do you
have an alternate suggestion? Thx.

  #9   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

Hi, I've tried the formula above. However, when I have actual data vs
text, the value returned is 0 vs the correct value. Do you have an
alternate suggestion? Thx.

  #10   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

wrote
.. Try this adjustment: =IF(D91+0=0,0,D71/D91)

Hi Max, I've tried the formula above and where I do have data, the
result returned = 0 vs the correct number. Do you have an alternate
suggestion? Thx.


Pl paste the actual data in D91 which returned the incorrect zero result
(instead of the correct D71/D91).
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




  #11   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Zeros in text resulting in #div/0! even when using IF function

Looks like this thread is going
to remain an unsolved mystery .. <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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 Function with Different Formatting for Number MKenworthy Excel Discussion (Misc queries) 1 September 1st 05 11:34 PM
adding zero's to a text cell Jennifer Excel Worksheet Functions 2 August 13th 05 02:54 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
zero supress leading zeros when chg format from text to number HeatherO Excel Worksheet Functions 4 February 27th 05 11:11 PM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM


All times are GMT +1. The time now is 02:29 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"