Hello, I'm trying to find the first cell value that matches 2 conditions:
1st condition is the Registered day
2nd condition is the desired professor for the shift
When both conditions are met, the first person to match the conditions goes on top of the corresponding shift with professor.
Here is what my sheet1 looks like:
1.png
And here is what my sheet 2 should looks like:
2.png
I used
=INDEX(Sheet1!B2:B51, MATCH(1, (Sheet1!D2:D51=Sheet2!A2)*(Sheet1!I2:I51=Sheet2!B6),0), 1)
and works fine for Person 1's Monday AM schedule
but this does not go through columns E to H or J to M so I edited to
=INDEX(Sheet1!B2:B51, MATCH(1, (Sheet1!D2:H51=Sheet2!A2)*(Sheet1!I2:M51=Sheet2!B6),0), 1)
and I'm getting #N/A error.
I figured that lookup array only sweeps 1 column but would there be any alternative way I can make this work?
ps. I couldn't attach the excel file in the previous post so I've deleted the old post to repost
Bookmarks