Essentially what I'd like to be able to do is to find the first Saturday of the month based on the first day of the month. And I get conflicting information concerning this.
I could have the end user choose the first Saturday of the month, but I'd rather not leave that impressive feat to their discretion.
For example, this coming January starts on a Thursday. What I'd like is to click on a button that says JAN and then VBA would look at the 2015 calendar year and say that the first Saturday is on the third.
If that's even possible. My reporting goes SAT-SUN, and SUMIFS filters ">="&(SUN DATE) and "<="&(SAT DATE) by week.
So I click on JAN, which sets the date to 010115, Excel/VBA does a little magic, determines that the first SAT is the 3rd, SUM statements add a few days to set the date range for each reporting week.
If the answer to this is no, that's fine I will just have to stick to my other idea.
I did it with
InputBox
andMsgBox
but you should get the idea from the code.You can use the variable
FirstSat
to create further code for "reporting weeks".Try below function to return first saturday in month:
usage: