biomathics23
New Member
- Joined
- Sep 10, 2018
- Messages
- 6
Hello and thanks for reading,
I have a list of dates in Column A, and want to analyze them between a start date and an end date (inclusive, encoded in two cells elsewhere, user-entered); within the list, some dates are duplicated by design to represent multiple occurrences of a given event. When the event does not occur, that date is absent from the list. There should be no blanks and the dates are in chronological order.
I want to create a table that indicates how frequently by weekday there are likely to be 0, 1, 2, etc. occurrences of the event on the same day. In other words a table like the following:
[TABLE="width: 550"]
<tbody>[TR]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]Thursday[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[TD]Sunday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0 events[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1 event[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2 events[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3+ events[/TD]
[/TR]
</tbody>[/TABLE]
So a 3 in the cell below Monday should indicate that within the given time frame, there were three Mondays with no events. A 4 at the bottom of the Thursday column should mean there were 4 Thursdays with at least 3 events during the time frame.
I managed to fill in the first row by taking the # of weekdays between two dates and subtracting the number of unique weekdays in a list to get the number of each weekday with 0 events. But I am at a loss to fill in the remaining rows by appropriate formulae. I strongly prefer not using VBA or helper cells if at all possible.
Thanks for your help!
I have a list of dates in Column A, and want to analyze them between a start date and an end date (inclusive, encoded in two cells elsewhere, user-entered); within the list, some dates are duplicated by design to represent multiple occurrences of a given event. When the event does not occur, that date is absent from the list. There should be no blanks and the dates are in chronological order.
I want to create a table that indicates how frequently by weekday there are likely to be 0, 1, 2, etc. occurrences of the event on the same day. In other words a table like the following:
[TABLE="width: 550"]
<tbody>[TR]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]Thursday[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[TD]Sunday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0 events[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1 event[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2 events[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3+ events[/TD]
[/TR]
</tbody>[/TABLE]
So a 3 in the cell below Monday should indicate that within the given time frame, there were three Mondays with no events. A 4 at the bottom of the Thursday column should mean there were 4 Thursdays with at least 3 events during the time frame.
I managed to fill in the first row by taking the # of weekdays between two dates and subtracting the number of unique weekdays in a list to get the number of each weekday with 0 events. But I am at a loss to fill in the remaining rows by appropriate formulae. I strongly prefer not using VBA or helper cells if at all possible.
Thanks for your help!