RedOctoberKnight

Board Regular
Joined
Nov 16, 2015
Messages
152
Office Version
  1. 2016
Platform
  1. Windows
Good Morning,

I trying to use index and match to lookup and employee name based on the day of the week and their position.

for example, I want to return the employee name who is in position "1" on Thursday.

EmployeeSundayMondayTuesdayWednesdayThursdayFridaySaturday
AOFF23451OFF
BOFFOFF45121
C1OFFOFF1232
D23OFFOFF343
E345OFFOFF54
F4512OFFOFF5
G51234OFFOFF

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col></colgroup>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
This would do that:

=INDEX($A$1:$A$8,MATCH(1,INDEX($A$1:$H$8,,MATCH("Thursday",$A$1:$H$1,0)),0))
 
Upvote 0

Excel 2010
ABCDEFGH
1EmployeeSundayMondayTuesdayWednesdayThursdayFridaySaturday
2AOFF23451OFF
3BOFFOFF45121
4C1OFFOFF1232
5D23OFFOFF343
6E345OFFOFF54
7F4512OFFOFF5
8G51234OFFOFF
9
101position to find
11ThursdayDay to find
12
13Bemployee
Sheet4
Cell Formulas
RangeFormula
C13=INDEX(A2:A8,MATCH(C10,INDEX(B2:H8,0,MATCH(C11,B1:H1,0)),0))
 
Upvote 0
Adding on to this, would I be able to do it by adding a start time? For example, I want to look up who works position 1 on Thursday at start time of 5?

EmployeeSunday PosSun Start timeMonday PosMon Start timeTuesday PosTue Start timeWednesday PosWed Start timeThursday PosThu Start TimeFriday PosFri Start timeSaturday PosSat Start time
AlexOFF 253911211215OFF
BobOFF OFF 112112152515
Chris15OFF OFF 15253925
Dan2539OFF OFF 3911239
Eric39112112OFF OFF 112112
Frank1121121525OFF OFF 112
Greg212152539112OFF OFF

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup>
 
Upvote 0
Adding on to this, would I be able to do it by adding a start time? For example, I want to look up who works position 1 on Thursday at start time of 5?

EmployeeSunday PosSun Start timeMonday PosMon Start timeTuesday PosTue Start timeWednesday PosWed Start timeThursday PosThu Start TimeFriday PosFri Start timeSaturday PosSat Start time
AlexOFF253911211215OFF
BobOFFOFF112112152515
Chris15OFFOFF15253925
Dan2539OFFOFF3911239
Eric39112112OFFOFF112112
Frank1121121525OFFOFF112
Greg212152539112OFFOFF

<tbody>
</tbody>

I think this would work for you:

Its an array so ctrl + shift + enter

=INDEX(A2:A8, MATCH(1, (1=J2:J8)*(5=K2:K8),0))
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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