Matching shifts to staff availability using partial data.

Luder94

New Member
Joined
Aug 26, 2022
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Hi,

I receive shifts from one source in a table and I have the availability of staff in another source in a table.

I would like to return the name of the staff that is available in the column 'Name' in the Shifts Received table.

I have tried using INDEX and MATCH but I'm struggling as I need to use multiple criteria as well as using partial matches.

Also if two people are able to do the shift, which name would return first?

My question is, how do I match the name of the staff that is able to meet the needs of the shift?
I want the name to return in the Name column in the Shifts Received table.

Shifts Received
DateTimeLocationGradeCodeName
25/08/202019:00:00RainboroughGrade 4CEL?
26/08/202010:00:00LongwardGrade 2CEL?

Availability of staff
NameDate Available/Time AvailableLocation GradeCode
Anne Smith25/08/202019:00; 19:30; 19:45
Rainborough; Stockward; Fenbridge;
Grade 4CEL
Paul Worthing26/08/202009:00; 09:30; 10:00Stockward; LongwardGrade 2CEL
Beth Rowe25/08/2020

19:00; 19:30; 19;45
Stockward; RainboroughGrade 4CEL
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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