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!!
 

Some videos you may like

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
Joined
Jun 12, 2014
Messages
55,358
Office Version
  1. 365
Platform
  1. Windows
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
Joined
May 15, 2006
Messages
20
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Jun 12, 2014
Messages
55,358
Office Version
  1. 365
Platform
  1. Windows
Does the change I suggested do what you want?
 

Watch MrExcel Video

Forum statistics

Threads
1,127,196
Messages
5,623,305
Members
415,965
Latest member
Sixaside

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
Top