How do I display 0 if it is the end result for a formula

R

Ruben061479

I have a problem, I'm trying to run the following formula
(=((D7*E7)+(G7*H7)+(J7*K7)+(M7*N7)+(P7*Q7)+(S7*T7)+(V7*W7))/(D7+G7+J7+M7+P7+S7+V7))
which is to find out the average of a weekly call survey but some cells are
blank due to the fact that there are no value inputed because no calls where
made on specific day and the end result turns up an error (#DIV/O!). How can
I make it so if the cells are blank, the end result will turn to display zero?
 
C

Chip Pearson

Try

=IF((D7+G7+J7+M7+P7+S7+V7)=0,0,
((D7*E7)+(G7*H7)+(J7*K7)+(M7*N7)+(P7*Q7)+(S7*T7)+(V7*W7))/(D7+G7+J7+M7+P7+S7+V7))

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
T

Toppers

=IF(D7+G7+J7+M7+P7+S7+V7=0,0,((D7*E7)+(G7*H7)+(J7*K7)+(M7*N7)+(P7*Q7)+(S7*T7)+(V7*W7))/(D7+G7+J7+M7+P7+S7+V7))
 
R

Ruben061479

Thank You very much this worked perfectly, You don't know how much I
appreciate your help!!!! Thank You!!!!!!!
 
M

MartinW

Also there is no need for all those brackets.
=((D7*E7)+(G7*H7)+(J7*K7)+(M7*N7)+(P7*Q7)+(S7*T7)+(V7*W7))
is the same as
=(D7*E7+G7*H7+J7*K7+M7*N7+P7*Q7+S7*T7+V7*W7)

HTH
Martin
 
Top