Date Planner from Start and End Dates

wcself81

New Member
Joined
Dec 18, 2024
Messages
1
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
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hello, please test the following (in I5):

Excel Formula:
=DROP(REDUCE("",H5:H11,LAMBDA(x,y,VSTACK(x,
LET(
a,B6:B7,
b,C6:C7,
c,D6:D7-b+1,
d,SEQUENCE(,XLOOKUP(y,a,c),XLOOKUP(y,a,b)),
IF(ISNUMBER(XLOOKUP(I4:AG4,d,d)),1,""))))),1)
 
Upvote 0
Few more options:
Book1
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1
2
3
4Pull-down formula1/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
5NameStartEndJohn1111000000000000000000000
6Joe1/10/251/15/25Jim0000000000000000000000000
7John1/1/251/4/25Joe0000000001111110000000000
8David0000000000000000000000000
9Jack0000000000000000000000000
10Brian0000000000000000000000000
11Sean0000000000000000000000000
12
13
141/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
15Single array->John1111000000000000000000000
16Jim0000000000000000000000000
17Joe0000000001111110000000000
18David0000000000000000000000000
19Jack0000000000000000000000000
20Brian0000000000000000000000000
21Sean0000000000000000000000000
Sheet5
Cell Formulas
RangeFormula
I5:AG11I5=LET(x,XLOOKUP(H5,$B$6:$B$7,$C$6:$D$7),d,I$4:AG$4,IFNA((d>=INDEX(x,1))*(d<=INDEX(x,2)),0))
I15:AG21I15=DROP(REDUCE("",H15:H21,LAMBDA(a,b,VSTACK(a,LET(x,XLOOKUP(b,$B$6:$B$7,$C$6:$D$7),d,$I$14:$AG$14,IFNA((d>=INDEX(x,1))*(d<=INDEX(x,2)),0))))),1)
Dynamic array formulas.
 
Upvote 0
Try. In I5
Excel Formula:
=LET(a,A6:C7,b,H5:H10,c,I4:AG4,MAKEARRAY(ROWS(b),COLUMNS(c),LAMBDA(ro,cl,LET(ra,MATCH(INDEX(b,ro),INDEX(a,,1),0),z,IF((INDEX(a,ra,2))<=INDEX(c,cl)*(INDEX(a,ra,3)>=INDEX(c,cl)),1,""),IFERROR(z,"")))))
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,708
Members
452,994
Latest member
Janick

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