Cross checking booked holiday with project dates

Fawjon

New Member
Joined
Jul 12, 2016
Messages
4
Hi

I have sheet1 (project dates) set up like this:

Start Date | End Date | Initial
15/01/2019 20/01/2019 BF
16/01/2019 16/01/2019 FB
01/02/2019 14/02/2019 BF
15/02/2019 28/02/2019 FB

...and sheet2 (booked holiday) set up like this:

Holiday Date | Initial
16/01/2019 BF
15/01/2019 FB
14/02/2019 BF
14/02/2019 FB

I would like to flag on sheet1 any projects that have date ranges which clash with the booked holidays (using the Initials as an identifier for clashes). Hopefully that makes sense? I've spent a couple of hours scouring the internet for an answer to this relatively simple function but I haven't had any luck.

Thanks for your help!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi Fawjon,
I guess the COUNTIFS formula should be able to give you an answer.
E.g. like so (formula for sheet1, cell D2):
=COUNTIFS(sheet2!B:B,C2,sheet2!A:A,">="&A2,sheet2!A:A,"<="&B2)
Cheers,
Koen
 
Upvote 0
Hi Fawjon,
I guess the COUNTIFS formula should be able to give you an answer.
E.g. like so (formula for sheet1, cell D2):
=COUNTIFS(sheet2!B:B,C2,sheet2!A:A,">="&A2,sheet2!A:A,"<="&B2)
Cheers,
Koen

Thanks for the reply Koen. I eventually found a way to do it using sumifs

=IFERROR(IF(SUMIFS(holidaylist!C:C,holidaylist!A:A,">="&[@Start],holidaylist!A:A,"<="&[@Finish],holidaylist!B:B,[@[PM 1clash]])>0,"Holiday",""),"")

(holidaylist!C:C = value of 1 for each record, holidaylist!A:A = holiday dates, holidaylistB:B = employee initials, @start = project start date, @finish = project end date, PM1clash = project employee initial)
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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