VLOOKUP for Multiple Values?

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a vacation planner for 2022. I have days of 2022 numbered (1 for Monday, 2 for Tuesday, etc.) as seen below:

DateDayDate of RequestRequest #Employee IDName
01/01/2260015954Smith, John
01/02/2270015954Smith, John
01/03/2210015954Smith, John
01/04/2220015954Smith, John
01/05/2230015954Smith, John
01/06/2240015954Smith, John
01/07/2250015954Smith, John


I want to use this source data to find out what the employee days off are and if the employee has a matching number in the table above, I want Excel to return "Off" (e.g. John Smith is off Sat and Sun so in the first table, so I want Excel to look at this table below, find the off days for John Smith (6 and 7), and return the word "Off" in every cell that has a matching number of 6 or 7 in Column C:

EE NumberEmployee NameNew ClassificationLocation CodeSenority DateDay offDay off 2
0015954Smith, JohnTree Trimmers01595401/01/2167
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Maybe...

Pasta1
ABCDEFGHIJKLMN
1DateDayDate of RequestRequest #Employee IDNameEE NumberEmployee NameNew ClassificationLocation CodeSenority DateDay offDay off 2
201/01/20226Off15954Smith, John15954Smith, JohnTree Trimmers1595401/01/202167
302/01/20227Off15954Smith, John
403/01/20221 15954Smith, John
504/01/20222 15954Smith, John
605/01/20223 15954Smith, John
706/01/20224 15954Smith, John
807/01/20225 15954Smith, John
9
Plan1
Cell Formulas
RangeFormula
C2:C8C2=IF(ISNUMBER(MATCH(B2,INDEX(M$2:N$100,MATCH(E2,H$2:H$100,0),0),0)),"Off","")


M.
 
Upvote 0
I thought about INDX, MATCH, MATCH but never thought about MATCH, INDX, MATCH!

Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,854
Members
449,096
Latest member
Erald

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