Index Match with multiple conditions including dates

Sparkee

New Member
Joined
Aug 24, 2017
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi, I am new to Index Match formulas and I have a spreadsheet with 2 tabs. One tab has positions against a row of names, and the other has the names against rows of positions. I am trying to index match into the names against rows of positions conditional on the start and end dates. The index match I have is:

=INDEX(LinebyName!B2:B11, MATCH(1,((LinebyName!J2:J11=LinebyPosition!A2)*(LinebyName!G2:G12>=LinebyPosition!B1)*(LinebyName!H2:H11<=LinebyPosition!C1)),0))

Position against Names
Allocation sample file (1).xlsm
I
6Intern Line 5
LinebyName


Names against positions
Allocation sample file (1).xlsm
B
2#N/A
LinebyPosition
Cell Formulas
RangeFormula
B2B2=INDEX(LinebyName!B2:B11, MATCH(1,((LinebyName!J2:J11=LinebyPosition!A2)*(LinebyName!G2:G12>=LinebyPosition!B1)*(LinebyName!H2:H11<=LinebyPosition!C1)),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:F12Cell Valuebeginning with " "textNO


I would really appreciate any assistance.

Thanks
Michelle
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Based on only a very quick look ....

You have a reference to G2:G12, which looks it needs to be G2:G11?

By the way, with Excel 365, you have the XLOOKUP function available. You might want to give that a try?
 
Upvote 0

Forum statistics

Threads
1,223,578
Messages
6,173,167
Members
452,504
Latest member
frankkeith2233

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