Divide by 0 error #DIV/0!

ram6402

New Member
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)

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Fluff

MrExcel MVP, Moderator
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),"")``

ram6402

New Member
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.

Fluff

MrExcel MVP, Moderator
Does the change I suggested do what you want?

Replies
3
Views
346
Replies
0
Views
230
Replies
17
Views
861
Replies
3
Views
376
Replies
3
Views
586

1,127,566
Messages
5,625,542
Members
416,116
Latest member
Joemamasuka

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.

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

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