Populate Calendar biased on list of date ranges (To include Ranges that cross over)

wknight1983

New Member
Joined
Jan 2, 2017
Messages
2
Hey guys i have been attempting to do a look up or match to get date ranges from a list of peoples holidays, into a calendar to offer a printable calendar to see what dates are booked already and what can still be booked..

so on Tab 1
[Leave]
Name (A1)Start DateFinish DateType
Webb, Lesley09/01/201713/01/2017Training
Pernal, Izabela09/01/201713/01/2017Training
Knight, Wayne12/01/201729/01/2017Holiday (Paid)
Gronow, Frances15/01/201715/01/2017Holiday (Paid)

<tbody>
</tbody>

<tbody>
</tbody>

I would like to match these date ranges and return the name and type of holiday importantly picking up each variant covering a specific date. My second tab covers a month (Jan 1st - 31st) in b-d Feb (1st -31st) in e-g until June then the following months are repeated in the same format below.

[Calendar]
Date(B3)WeekdayList of Returned values
08/01/2017Sun-
09/01/2017MonWebb, Lesley - (Training)
Pernal, Izabela - (Training)
10/01/2017TueWebb, Lesley - (Training)
Pernal, Izabela - (Training)
11/01/2017WedWebb, Lesley - (Training)
Pernal, Izabela - (Training)
12/01/2017ThuWebb, Lesley - (Training)
Pernal, Izabela - (Training)
Knight, Wayne - (Holiday (Paid))
13/01/2017FriWebb, Lesley - (Training)
Pernal, Izabela - (Training)
Knight, Wayne - (Holiday (Paid))
14/01/2017SatKnight, Wayne - (Holiday (Paid))
15/01/2017SunKnight, Wayne - (Holiday (Paid))
Ostrowska, Katazyna - (Training)
16/01/2017MonKnight, Wayne - (Holiday (Paid))
Ect...Ect...{See formula below}

<tbody>
</tbody>

I have this formula that works but its not ideal very resource heavy and slows excel to much. Anyone out there fancy a challenge to see if they can come up with a slicker formula?

Code:
[FONT=Lucida Grande]=IF([/FONT][COLOR=#1A5AD3][FONT=Lucida Grande]C3[/FONT][/COLOR][FONT=Lucida Grande]="","",IFERROR[/FONT][COLOR=#006110][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]LOOKUP[/FONT][COLOR=#AB37D3][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]2,1/[/FONT][COLOR=#A2492D][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]Leave!$F:$F<=[/FONT][COLOR=#006110][FONT=Lucida Grande]B3[/FONT][/COLOR][COLOR=#A2492D][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande]/[/FONT][COLOR=#A2492D][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]Leave!$G:$G>=[/FONT][COLOR=#006110][FONT=Lucida Grande]B3[/FONT][/COLOR][COLOR=#A2492D][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande],Leave!$A:$A&" - ("&Leave!$D:$D&")"[/FONT][COLOR=#AB37D3][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande],"-"[/FONT][COLOR=#006110][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande]&IFERROR[/FONT][COLOR=#006110][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]"[/FONT][FONT=Lucida Grande]"&LOOKUP[COLOR=#ab37d3]([/COLOR]2,1/[COLOR=#a2492d]([/COLOR]Leave!$H:$H<=[COLOR=#006110]B3[/COLOR][COLOR=#a2492d])[/COLOR]/[COLOR=#a2492d]([/COLOR]Leave!$I:$I>=[COLOR=#006110]B3[/COLOR][COLOR=#a2492d])[/COLOR],Leave!$A:$A&" - ("&Leave!$D:$D&")"[COLOR=#ab37d3])[/COLOR],"-"[COLOR=#006110])[/COLOR]&IFERROR[COLOR=#006110]([/COLOR]"[/FONT]
[FONT=Lucida Grande]"&LOOKUP[/FONT][COLOR=#AB37D3][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]2,1/[/FONT][COLOR=#A2492D][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]Leave!$J:$J<=[/FONT][COLOR=#006110][FONT=Lucida Grande]B3[/FONT][/COLOR][COLOR=#A2492D][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande]/[/FONT][COLOR=#A2492D][FONT=Lucida Grande]([/FONT][/COLOR][FONT=Lucida Grande]Leave!$K:$K>=[/FONT][COLOR=#006110][FONT=Lucida Grande]B3[/FONT][/COLOR][COLOR=#A2492D][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande],Leave!$A:$A&" - ("&Leave!$D:$D&")"[/FONT][COLOR=#AB37D3][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande],"-"[/FONT][COLOR=#006110][FONT=Lucida Grande])[/FONT][/COLOR][FONT=Lucida Grande])[/FONT]

Kind Regards
Wayne Knight
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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