Divide by 0 error #DIV/0!

ram6402

New Member
Joined
May 15, 2006
Messages
20
Office Version
  1. 365
Platform
  1. Windows
I've looked at using the IF Function and the ISERROR function and I can't figure out to use them to calculate the following formula:

=SUM(L30:M30,L48:M48,L67:M67,L85:M85,L103:M103,L122:M122,L140:M140) / SUM(L30:N30,L48:N48,L67:N67,L85:N85,L103:N103,L122:N122,L140:N140)

Thanks in advance!!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

you haven't said what to do when you get the error, but maybe
Excel Formula:
=IFERROR(SUM(L30:M30,L48:M48,L67:M67,L85:M85,L103:M103,L122:M122,L140:M140) / SUM(L30:N30,L48:N48,L67:N67,L85:N85,L103:N103,L122:N122,L140:N140),"")
 
Upvote 0
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

you haven't said what to do when you get the error, but maybe
Excel Formula:
=IFERROR(SUM(L30:M30,L48:M48,L67:M67,L85:M85,L103:M103,L122:M122,L140:M140) / SUM(L30:N30,L48:N48,L67:N67,L85:N85,L103:N103,L122:N122,L140:N140),"")
Thank you for the response, I have updated my Account Details. The error is the standard "Divide by Zero error". In the cell where I have this formula I get the "#DIV/0!" result. This causes an error because I also average the results of the column.
 
Upvote 0
Does the change I suggested do what you want?
 
Upvote 0

Forum statistics

Threads
1,213,520
Messages
6,114,099
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top