Hey there,
What I am trying here to do is take the sum of b35:k35 and divide by the sum of b34:k34. But i ran into a problem with they both = 0 that I get the div by 0 error.
Is there somthing I can add to this to say show blank instead of error or a 0?
=SUM(B35:K35)/SUM(B34:K34)
Thanks in advance.
Try:
=IF(SUM(B34:K34)=0,"",SUM(B35:K35)/SUM(B34:K34))
or in Excel 2007 +
=IFERROR(SUM(B35:K35)/SUM(B34:K34),"")
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Thanks again!! worked like a charm *hits star* ahh wont let me again.. thanks though
No problem.![]()
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks