Dynamic calendar for parenting time

CigarBuddha

New Member
Joined
Jan 17, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have a dynamic calendar setup and want to have it show the days each parent has and show the holidays. With that in mind the holidays change as one will have an odd year one will have an even year. The way the schedule is set one parent has Monday and Tuesday one parent has Wednesday and Thursday then every other weekend starting on Friday. If at all possible some of the dates need to have times associated with them like from 10am on that holiday to 10am the next day.
 
If you want a calendar for 2 years, try the following

Calendar 2024.xlsx
ABCDEFGHI
1SunMonTueWedThursFriSat2 Years01-01-24
231-Dec-2301-Jan-2402-Jan-2403-Jan-2404-Jan-2405-Jan-2406-Jan-24
307-Jan-2408-Jan-2409-Jan-2410-Jan-2411-Jan-2412-Jan-2413-Jan-24
Sheet1
Cell Formulas
RangeFormula
A1:G107A1=CalendarFor2Yrs(I1)
Dynamic array formulas.
Lambda Functions
NameFormula
CalendarFor2Yrs=LAMBDA(Date,VSTACK({"Sun","Mon","Tue","Wed","Thurs","Fri","Sat"},SEQUENCE(106,7,WORKDAY.INTL(Date+1,-1,"1111110"),1)))
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Yes, you will need to add the dates of the upcoming years to the tables, especially for holidays like Easter, which falls on a different date every year.
Just add dates to the tables
OK I've been trying to figure out how to apply your formula into the dynamic calendar I had already made. I have my calendar setup to show the correct days for years all the way to 2040. The dates that stay constant meaning they never happen on a different date I have set they will change the year when it changes. The dates that have different dates I will have to setup so they show correctly as the year changes.
 

Attachments

  • calendar1 2024-02-02 151916.png
    calendar1 2024-02-02 151916.png
    104.9 KB · Views: 6
  • calendar2 Screenshot 2024-02-02 152018.png
    calendar2 Screenshot 2024-02-02 152018.png
    26 KB · Views: 5
Upvote 0
This has been so helpful to me, but I'm stuck in two places on the conditional-rules blue/orange calendar. First, I can't figure out how to tweak the Parent_1/Parent_2 formulas to "swap" the weekends while also preserving the holidays. Second, is there a way for me to adjust the formulas so that I can see more than one month at a time? (E.g., all of 2025). All help appreciated!
 
Upvote 0

Forum statistics

Threads
1,224,810
Messages
6,181,079
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top