# 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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

#### 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
351
Replies
0
Views
235
Replies
17
Views
871
Replies
3
Views
382
Replies
3
Views
620

1,130,169
Messages
5,640,550
Members
417,151
Latest member
ChickenTenderer

### 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.

### Which adblocker are you using?

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