DIV/0! error HELP :(

craig80

Board Regular
Joined
May 18, 2010
Messages
51
Hi Guys,

I am trying to return a blank from the below function, however my ISERROR doesn't seem to be working? Can anyone shead some light?

Thanks

BEFORE ERROR CHECK
=(SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20)))/(SUM(COUNTIFS(CA,">=10",Bus_Area,$B20),COUNTIFS(SA,">=10",Bus_Area,$B20),COUNTIFS(EA,">=10",Bus_Area,$B20),COUNTIFS(ENGA,">=10",Bus_Area,$B20),COUNTIFS(PLA,">=10",Bus_Area,$B20))+SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20)))
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I don't see any ISERROR there, but why do you need it? If you don't want to see the result if it's zero format the cell as eg:

General;General;
 
Upvote 0
Sorry, I missed the division. Try:

=IF((SUM(COUNTIFS(CA,">=10",Bus_Area,$B20),COUNTIFS(SA,">=10",Bus_Area,$B20),COUNTIFS(EA,">=10",Bus_Area,$B20),COUNTIFS(ENGA,">=10",Bus_Area,$B20),COUNTIFS(PLA,">=10",Bus_Area,$B20))+SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20))),(SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20)))/(SUM(COUNTIFS(CA,">=10",Bus_Area,$B20),COUNTIFS(SA,">=10",Bus_Area,$B20),COUNTIFS(EA,">=10",Bus_Area,$B20),COUNTIFS(ENGA,">=10",Bus_Area,$B20),COUNTIFS(PLA,">=10",Bus_Area,$B20))+SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20))),"")
 
Upvote 0
Fantastic,

thanks you.

I can't see what you changed? Can you highlight it for me, so I can learn something new today?

thanks

C
 
Upvote 0
Sure:

=IF((SUM(COUNTIFS(CA,">=10",Bus_Area,$B20),COUNTIFS(SA,">=10",Bus_Area,$B20),COUNTIFS(EA,">=10",Bus_Area,$B20),COUNTIFS(ENGA,">=10",Bus_Area,$B20),COUNTIFS(PLA,">=10",Bus_Area,$B20))+SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20))),(SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20)))/(SUM(COUNTIFS(CA,">=10",Bus_Area,$B20),COUNTIFS(SA,">=10",Bus_Area,$B20),COUNTIFS(EA,">=10",Bus_Area,$B20),COUNTIFS(ENGA,">=10",Bus_Area,$B20),COUNTIFS(PLA,">=10",Bus_Area,$B20))+SUM(COUNTIFS(CA,"p",Bus_Area,$B20),COUNTIFS(SA,"p",Bus_Area,$B20),COUNTIFS(EA,"p",Bus_Area,$B20),COUNTIFS(ENGA,"p",Bus_Area,$B20),COUNTIFS(PLA,"p",Bus_Area,$B20))),"")
 
Upvote 0

Forum statistics

Threads
1,214,412
Messages
6,119,369
Members
448,888
Latest member
Arle8907

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