Problem solving div/0 error in a zero value cell

R

robert s

I need a fix for a problem I am having .I have a qoute sheet linked to
spread sheet with multiple rows of Items bein qouted, when I have dat
in the cells everything is dandy,but if I have nothing in the cell fo
instance I only use one line on the qoute sheet instead of two or eigh
I get a div/o error that stops my totals calculations on the first pag
and then transfers it to my customer copy.
origanlcode
(G7+I7*G3)+(H7*I3)/F7
Fix hides error code
=IF(ISERROR((G7+I7*G3)+(H7*I3)/F7),"",(G7+I7*G3)+(H7*I3)/F7)
the dividing by zero I understand because there is no numbers in th
code when not in use ,but I cant seem to come up with a different wa
of coding it.The if error fix makes it disapear but I still cant tota
my numbers unless all rows have data ,any Ideas?

Thanks
Bob S
 
R

RagDyer

First of all, try this for your original formula (little shorter):

=IF(F7>0,(G7+I7*G3)+(H7*I3)/F7,"")

Then, since you say you're not able to total the cells that contain this
formula, I'm guessing that you're *not* using the SUM() function to total
your sheet, but probably using pluses (+) instead (=A1+A2+A3+A4)

Try using SUM()
=SUM(A1:A4)
OR
=SUM(A1,B2,C3,D4)

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
 
C

CLR

Maybe replace the null "" in your formula with a zero 0......, or 1, or
..00000001.....

hth
Vaya con Dios,
Chuck, CABGx3
 
F

Fred Smith

If setting the result to blank when you divide by zero still causes problems,
then you need to set it to something else that won't. What about setting it to
zero rather than blank? Does that work?

Also, you can simplify your If statement by testing only F7 as follows:

=if(f7=0,0,G7+I7*G3+(H7*I3)/F7)
 
R

robert s

Thanks for the help you saved me many hours of trying different fixes .
RagDyer your fix worked great,I had to apply the fix to the total
column too
and format the cells to general before it worked but it does and thank
alot.


Bob S
 
R

RagDyeR

Appreciate the feed-back.
--

Regards,

RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------

message
Thanks for the help you saved me many hours of trying different fixes .
RagDyer your fix worked great,I had to apply the fix to the totals
column too
and format the cells to general before it worked but it does and thanks
alot.


Bob S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top