#DIV/0 Question/help

easybpw

Active Member
Joined
Sep 30, 2003
Messages
409
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Is there a way to construct the formula below so that when E$15 is 0 that this #DIV/0 does not happen? I would prefer it to just be blank or return a result of 0 and not this error. Can my formula be changed so I can achieve this?

=((F9*3)+(H9*2)+(J9*1)+(L9*1)+(N9*2)+(P9*0.25)+(R9*-1)+(T9*5)+(V9*0.2)+(X9*3))/E$15


Thanks,

Bill
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
58,315
Office Version
  1. 365
Platform
  1. Windows
Try:

=IF(E15,((F9*3)+(H9*2)+(J9*1)+(L9*1)+(N9*2)+(P9*0.25)+(R9*-1)+(T9*5)+(V9*0.2)+(X9*3))/E$15,0)
 

easybpw

Active Member
Joined
Sep 30, 2003
Messages
409
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Thanks, just what I was hoping for.

Bill
 

Forum statistics

Threads
1,136,697
Messages
5,677,264
Members
419,682
Latest member
M3one

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