Count number of instances discounting weekends and Bank Holidays

johnbird1988

Board Regular
Joined
Oct 6, 2009
Messages
199
Hello,

I have this formula to work out the number of instances of "S" appearing within a range. The below formula work brilliantly, however, I cannot get it to incorporate Bank Holidays. I have all the bank holidays listed in a named range called "Holidays". Can any one help with editing the below formula. I have used a previous post to help with the first part.

http://www.mrexcel.com/forum/excel-questions/438745-count-number-instances-discounting-weekends.html

{=SUM(IF(FREQUENCY(IF(ISNUMBER(MATCH($J10:$NK10,{"S"},0))+ISNUMBER(MATCH(IF(ISNUMBER(MATCH($J$9:$NK$9,{"Sat","Sun"},0)),$J$6:$NK$6,"#"),IF(ISNUMBER(MATCH($J10:$NK10,{"S"},0)),IF($J$9:$NK$9="Fri",$J$6:$NK$6+1,IF($J$9:$NK$9="Mon",$J$6:$NK$6-1))),0)),COLUMN($J10:$NK10)),IF(ISNA(MATCH($J10:$NK10,{"S"},0))*ISNA(MATCH($J$9:$NK$9,{"Sat","Sun"},0)),COLUMN($J10:$NK10))),1))}

Thank you for your help

John
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,217
Messages
6,123,675
Members
449,116
Latest member
HypnoFant

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