#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 524
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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



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



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