I need to be able to count the number of Mondays in a date range and subtract the Mondays which are holidays. By reading this message board I have found a nice way to count the number of Mondays in a date range:
Let A1 contain the start date and A2 contain the end date, then:
=SUM(1*(WEEKDAY(ROW(INDIRECT($A$1&":"&$A$2)))=2))
will give me the number of Mondays. I am struggling with how to count the number of Monday holidays from a list. If the list of holidays is contained in B1:B10, then I was hoping that something like the following would work:
=COUNTIF(B1:B10, ROW(INDIRECT($A$1&":"&$A$2)))
but it doesn't. Note, these are both array formulas and I am running Excel 2007.
I appreciate any guidance.
-Dean
Let A1 contain the start date and A2 contain the end date, then:
=SUM(1*(WEEKDAY(ROW(INDIRECT($A$1&":"&$A$2)))=2))
will give me the number of Mondays. I am struggling with how to count the number of Monday holidays from a list. If the list of holidays is contained in B1:B10, then I was hoping that something like the following would work:
=COUNTIF(B1:B10, ROW(INDIRECT($A$1&":"&$A$2)))
but it doesn't. Note, these are both array formulas and I am running Excel 2007.
I appreciate any guidance.
-Dean