divide by zero error help

Imran Azam

Board Regular
Joined
Mar 15, 2011
Messages
103
HI guys

i have set the below formula ( with some help from mrexcel members !) below to pull some numbers but i get the #DIV/0! error sometimes do to the 0 or no data.

below is the formula

=COUNTIFS('test1'!$AC:$AC,$D7,'test1'!$V:$V,"Won",'test1'!$S:$S,">=01/05/2019",'test1'!$S:$S,"<01/06/2019")/(COUNTIFS('test1 Data'!$AC:$AC,$D7,'test1'!$V:$V,"Open")+
COUNTIFS('test1'!$AC:$AC,$D7,'Win Rate Data'!$V:$V,"Won",'test1'!$S:$S,">=01/05/2019",'test1'!$S:$S,"<01/06/2019",'test1'!$T:$T,">499")+
COUNTIFS('test1'!$AC:$AC,$D7,'test1'!$V:$V,"RED",'test1'!$S:$S,">=01/05/2019",'test1'!$S:$S,"<01/06/2019")),"-")


how can i create this so if its divde by zero it comes up witha blank rather than the error?


thanks guy
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Nest with an IFERROR like so:

=IFERROR(COUNTIFS('test1'!$AC:$AC,$D7,'test1'!$V:$V,"Won",'test1'!$S:$S,">=01/05/2019",'test1'!$S:$S,"<01/06/2019")/(COUNTIFS('test1 Data'!$AC:$AC,$D7,'test1'!$V:$V,"Open")+
COUNTIFS('test1'!$AC:$AC,$D7,'Win Rate Data'!$V:$V,"Won",'test1'!$S:$S,">=01/05/2019",'test1'!$S:$S,"<01/06/2019",'test1'!$T:$T,">499")+
COUNTIFS('test1'!$AC:$AC,$D7,'test1'!$V:$V,"RED",'test1'!$S:$S,">=01/05/2019",'test1'!$S:$S,"<01/06/2019")),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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