A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#DIV/O!



 
 
Thread Tools Display Modes
  #1  
Old March 8th, 2010, 03:13 AM posted to microsoft.public.excel.worksheet.functions
painter50
external usenet poster
 
Posts: 8
Default #DIV/O!

I get this #DIV/O! when I divide two cell that both total 0.

These cell will not always be used in the spreadsheet. Is there any way to
show the total of these cell to be 0 when not used?
--
Joe
  #2  
Old March 8th, 2010, 03:25 AM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
external usenet poster
 
Posts: 516
Default #DIV/O!

=IF(A2=0,0,A1/A2)
or in Excel 2007
=IFERROR(A1/A2,0)
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"painter50" wrote in message
...
I get this #DIV/O! when I divide two cell that both total 0.

These cell will not always be used in the spreadsheet. Is there any way
to
show the total of these cell to be 0 when not used?
--
Joe


  #3  
Old March 8th, 2010, 03:25 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default #DIV/O!

Maybe something like this...

If you have something like this: =A1/B1, and B1 is an empty cell then try it
like this:

=IF(B1="",0,A1/B1)

--
Biff
Microsoft Excel MVP


"painter50" wrote in message
...
I get this #DIV/O! when I divide two cell that both total 0.

These cell will not always be used in the spreadsheet. Is there any way
to
show the total of these cell to be 0 when not used?
--
Joe



  #4  
Old March 8th, 2010, 03:28 AM posted to microsoft.public.excel.worksheet.functions
Stan Brown
external usenet poster
 
Posts: 536
Default #DIV/O!

Sun, 7 Mar 2010 18:13:01 -0800 from painter50 painter50
@discussions.microsoft.com:

I get this #DIV/O! when I divide two cell that both total 0.

These cell will not always be used in the spreadsheet. Is there any way to
show the total of these cell to be 0 when not used?


=if(A2,A1/A2,0)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
  #5  
Old March 8th, 2010, 04:37 AM posted to microsoft.public.excel.worksheet.functions
painter50
external usenet poster
 
Posts: 8
Default #DIV/O!

This is the formulas I trying to fix

=(I5-P5)/Q5
I5=0 P5=0 Q5=0

I used =IF(ISERROR(I5-P5),"-",I5-P5) and it worked fine. The problem is
when I try to divide the (I5-P5)
Joe


"painter50" wrote:

I get this #DIV/O! when I divide two cell that both total 0.

These cell will not always be used in the spreadsheet. Is there any way to
show the total of these cell to be 0 when not used?
--
Joe

  #6  
Old March 8th, 2010, 05:18 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default #DIV/O!

Try it like this...

=IF(Q5=0,"-",(I5-P5)/Q5)

--
Biff
Microsoft Excel MVP


"painter50" wrote in message
...
This is the formulas I trying to fix

=(I5-P5)/Q5
I5=0 P5=0 Q5=0

I used =IF(ISERROR(I5-P5),"-",I5-P5) and it worked fine. The problem is
when I try to divide the (I5-P5)
Joe


"painter50" wrote:

I get this #DIV/O! when I divide two cell that both total 0.

These cell will not always be used in the spreadsheet. Is there any way
to
show the total of these cell to be 0 when not used?
--
Joe



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:50 AM.


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