How to hide #DIV/0!

petewann

New Member
Joined
Sep 3, 2019
Messages
5
how do I stop this showing #DIV/0! as a result =SUMPRODUCT(--(DATA!$F$5:$F$303=D$2),--(DATA!$BE$5:$BE$303=10))/D$3
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Excel Formula:
=IFERROR(SUMPRODUCT(--(DATA!$F$5:$F$303=D$2),--(DATA!$BE$5:$BE$303=10))/D$3,"")
You can place a text message between the double quote marks if you wish.
 
Upvote 0
That could possibly also hide other errors that you might want/need to know about.
Instead, assuming that any #DIV/0! error is resulting from D3 being zero or empty, you could directly address the division by 0 as follows. Again, an error message could be added between the double quotes if you want.

Excel Formula:
=IF(D3=0,"",SUMPRODUCT(--(DATA!$F$5:$F$303=D$2),--(DATA!$BE$5:$BE$303=10))/D$3)

BTW, 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’)
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,358
Members
449,155
Latest member
ravioli44

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