Div 0 help

J

joey_boy

=(SUM(E98:F98)+D98/2)/(I98-G98)

This formula gives me a Div 0 error. How can I re-write it so that it stores
a value of 0 , if it encounters a Divide by 0 and executes the calculation if
Help appreciated
Joe
 
D

Dave Peterson

maybe:

=if(i98=g98,0,sum(e98:F98,d98/2)/(i98-g98))

I combined your addition into the =sum() portion. I thought it made it easier
to read.
 

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

Similar Threads

Divide by 0 Help 4
Div / 0 6
VBA Coding Help for Beginner 0
Newbie Help - IF Yes No Function 0
SUM ... Numbers, Nulls "", & Div/0 5
Supress DIV/0 2
#DIV?0! in Pivot Table 0
#DIV/0! displayed in Pivot Tables 0

Top