Date Planner from Start and End Dates

wcself81

New Member
Joined
Dec 18, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Folks,
I can't help but feel there is an elegant solution to this one but I'm on the verge of creating a set of horrendous formulae that I'd love to avoid if possible......

As an output, I'm trying to produce a holiday planner view in a calendar style format of names down the left, dates across the top with a "1" in the cells that indicate a holiday is in for that day.

The Input is a list of holiday requests with a name with a start and end date only.

So for example; I want to be able to show "1" under the 10th, 11th, 12th, 13th, 14th and 15th of Jan for Joe, because Joe has input the 10th to the 15th for a holiday (As shown on the left).

I've tried a few combinations of countifs but can't get them to work.

What formula can i put in the yellow cells on the right hand side that would read the holiday requests on the left hand side correctly?

Hols Minisheet Pic.png
 
Okay, Part 2. Apologies for the pile of posts. You can tell I've had a go at this for a Sunday afternoon....

I've managed to get the previous solutions all working, so my thanks again for those that have given me a way ahead. They work really well for the extended dataset I've tried them with.

However, the complication that's arose is where an individual has two separate holiday requests in for the time period being assessed.

See attached image. I'm going to work round the issue by reducing the time period being looked at to 7 days. It will resolve the vast majority of the issues it is causing me. However, if someone has a Monday requested and a Friday, the solution will miss the Friday....... I'll just live with it.

But if anyone has any further blinding flashes of inspiration, please let me know!

Hols Minisheet Pic2.png
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try:
Book2
BCDEHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1
2
3
41/1/251/2/251/3/251/4/251/5/251/6/251/7/251/8/251/9/251/10/251/11/251/12/251/13/251/14/251/15/251/16/251/17/251/18/251/19/251/20/251/21/251/22/251/23/251/24/251/25/25
5NameStartEndJohn1111000000000000110000000
6Joe1/10/251/15/25Jim0000000000000000000000000
7John1/1/251/4/25Joe0000000001111110000000000
8John1/17/251/18/25David0000000000000000000000000
9Jack0000000000000000000000000
10Brian0000000000000000000000000
11Sean0000000000000000000000000
Sheet3
Cell Formulas
RangeFormula
I5:AG11I5=LET(f,FILTER($C$6:$D$8,$B$6:$B$8=$H5),BYCOL(I$4:AG$4,LAMBDA(bc,IFERROR(--OR(MAP(INDEX(f,,1),INDEX(f,,2),LAMBDA(a,b,MEDIAN(a,b,bc)=bc))),0))))
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5:AG11Cell Value=1textNO
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
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