Sep 22 2021 01:25 PM - edited Sep 22 2021 07:18 PM
Hello everyone,
I am needing help with 2 things.
1. I am wanting to create a dropdown list that will have each Monday in 2021 listed but that Monday represents that entire week (Monday - Sunday). For example: Jan 4 will represent Jan 4-10, Jan 11 will represent Jan 11-17, etc.
2. I have a table that will count the number of occurrences that a specific shift submits a set of data. There are 3 shifts and I want to know how many times each shift submits an audit each week, month, and year. I want the totals to change based on what is selected in the dropdown. So if Jan 4 is selected then I want the numbers to date for that week. If I change the date to Jan 11, the data should change as I select that week.
I hope this makes sense and yall can help me. Thank you.
Update: I added a fake dataset.
Sep 22 2021 01:33 PM
Sep 22 2021 05:49 PM
Sep 22 2021 07:19 PM
Sep 22 2021 07:41 PM
Sep 23 2021 02:24 AM - edited Sep 23 2021 01:01 PM
As per ISO 8601 the first week of 2021 started on 04th Jan 2021.
You must consider =WEEKNUM(A8,21) to retrieve the real week number.
If you want a list of all 2021 Mondays you can simply by array formula
=DATE(YEAR(FirstDate),1,-2)-WEEKDAY(DATE(YEAR(FirstDate),1,3))+(ROW(1:52))*7
Or based on first date you just add 7 days
Sep 23 2021 12:37 PM
Sep 23 2021 12:59 PM - edited Sep 23 2021 01:00 PM
Anytime my friend.
Actually Microsoft has solved this "issue" creating for the new excel versions the formula
=ISOWEEKNUM(Date).
As I use to provide a more "democratic" solution that can be applied for many excel versions, I forgot to mention the new formula.
Sep 23 2021 07:28 PM
As Mr Petrukio indicated, you might want to use =ISOWEEKNUM() function as opposed to WEEKNUM() function. We are happy to know that you found your solution.
cheers