I’m trying to build a spreadsheet that creates recurring schedules automatically. I have tasks that need to happen on certain days of the week and specific times during the day.
My Setup
| Task | Dawn | Midday | Dusk | Late | Mon | Tue | Wed | Thu | Fri | Sat | Sun | Count | Duration |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Task A | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||
| Task B | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | ||||
| Task C | 1 | 1 | 1 | 3 | |||||||||
| Task D | 1 | 1 | 1 | 3 |
What I want to get:
| Date | Task | Time |
|---|---|---|
| 10.12.24 | Task A | Dawn |
| 10.12.24 | Task A | Dusk |
| 10.12.24 | Task B | Midday |
| 11.12.24 | Task B | Midday |
The Problem
Some tasks work fine when they can happen any day. But others have specific weekday rules. For example, Task C only happens on Monday, Wednesday, and Friday. If my start date is a Tuesday, it should skip to Wednesday instead.
I tried using formulas like =StartDate+MOD(WeekdayNumber-WEEKDAY(StartDate,2),7) but it doesn’t work with ARRAYFORMULA. I need everything to update automatically without dragging formulas down.
How can I make Google Sheets generate the right dates that match both the weekday restrictions and repeat the correct number of times?