i am looking for a way of counting how many sales days in any month, assuming the below information
[TABLE="width: 166"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Day [/TD]
[TD] Value[/TD]
[/TR]
[TR]
[TD]Sunday[/TD]
[TD="align: right"]0.125[/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Tuesday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Wednesday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Thursday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD="align: right"]0.250[/TD]
[/TR]
[TR]
[TD]Bank Holiday[/TD]
[TD="align: right"]0.250[/TD]
[/TR]
</tbody>[/TABLE]
so, using the above August 2017 would equal 23.75 (with the UK bank holiday on 28/08).
I need to work out the sales days in each month of each year ongoing.
I was thinking of using some sort of formula such as -
SUMPRODUCT(N(TEXT(ROW(INDIRECT(A1&":"&EOMONTH(A1,0))),"ddd")="Sun"))*0.125
(where A1 refers to the first day in the given month) to count the sundays +saturdays etc but i cant figure out how to account for the bank holidays.
thanks
M
[TABLE="width: 166"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Day [/TD]
[TD] Value[/TD]
[/TR]
[TR]
[TD]Sunday[/TD]
[TD="align: right"]0.125[/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Tuesday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Wednesday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Thursday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD="align: right"]1.000[/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD="align: right"]0.250[/TD]
[/TR]
[TR]
[TD]Bank Holiday[/TD]
[TD="align: right"]0.250[/TD]
[/TR]
</tbody>[/TABLE]
so, using the above August 2017 would equal 23.75 (with the UK bank holiday on 28/08).
I need to work out the sales days in each month of each year ongoing.
I was thinking of using some sort of formula such as -
SUMPRODUCT(N(TEXT(ROW(INDIRECT(A1&":"&EOMONTH(A1,0))),"ddd")="Sun"))*0.125
(where A1 refers to the first day in the given month) to count the sundays +saturdays etc but i cant figure out how to account for the bank holidays.
thanks
M