[FONT="]Hi all,[/FONT]
[FONT="]My goal is to count the number of a specific day of the week, say a Wednesday or Friday or Sunday between Date 1, say 1/10/2015 and Date 2, say 8/10/2015.
[/FONT]
[FONT="]I actually have the answer, as this formula works to count the number of Sundays and does everything I need: =INT((WEEKDAY($B$1- 1)-$B$1+$B2)/7)[/FONT]
[FONT="]B1 = Date 1[/FONT]
[FONT="]B2= Date 2[/FONT]
[FONT="]And the 1 is Sunday, 2 is Monday ...7 is Saturday.[/FONT]
[FONT="]
I've been scratching my head though as to WHY it works. The only that drives me crazier than something not working is something that works and not knowing the rationale behind it.
[/FONT]
[FONT="]If anyone can breakdown the parts and explain why it works, would be very appreciative.
[/FONT]
[FONT="]Thanks in advance[/FONT]
[FONT="]My goal is to count the number of a specific day of the week, say a Wednesday or Friday or Sunday between Date 1, say 1/10/2015 and Date 2, say 8/10/2015.
[/FONT]
[FONT="]I actually have the answer, as this formula works to count the number of Sundays and does everything I need: =INT((WEEKDAY($B$1- 1)-$B$1+$B2)/7)[/FONT]
[FONT="]B1 = Date 1[/FONT]
[FONT="]B2= Date 2[/FONT]
[FONT="]And the 1 is Sunday, 2 is Monday ...7 is Saturday.[/FONT]
[FONT="]
I've been scratching my head though as to WHY it works. The only that drives me crazier than something not working is something that works and not knowing the rationale behind it.
[/FONT]
[FONT="]If anyone can breakdown the parts and explain why it works, would be very appreciative.
[/FONT]
[FONT="]Thanks in advance[/FONT]