Index Match with Multiple Criteria.

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
624
Office Version
  1. 2016
Platform
  1. Windows
RSS Exception Log Layout.xlsm
CHI
2LASTTUESDAYPOS
3BILL05:30-14:00Z4
4TOM13:45-22:15Z4
5WILL13:00-21:30E1
6MARKOFF
7JAMESOFF
8DAVID13:00-21:30Z2
9ROBERT05:00-13:30E3
10MATTOFF
11LORA04:15-12:45E2
12SARA16:30-01:00C1
13JENNOFF
14KATE12:30-21:00T1
15JENNIFEROFF
16MIKE04:15-12:45Z1
17PETER04:15-12:45T1
18DAVID12:30-21:00Z1
19TOMAS13:00-21:30Z3
20JUSTIN08:00-16:30AD
21LISA16:30-01:00C1
22DAWOOD05:00-13:30Z2
23HAMZA05:00-13:30E1
24HAJI05:00-13:30Z3
25ALIOFF
RSS BID


using the Table above im tring to pull names of all AM start times to the am column. in the example below its Pulling KATE because its the first T1 that it come to in the above table. I need it to pull the agent that has T1 and is a AM start time. so instead of KATE it should be PETER. An AM start time is < time(11,0,0). I ok using helper formulas or other methods. any suggestion is greatly appreciated

RSS Exception Log Layout.xlsm
TUVXY
3AMSchedulePOSSchedulePM
4KATE12:30-21:00T1
5MIKE04:15-12:45Z1
6DAVID13:00-21:30Z2
7TOMAS13:00-21:30Z3
8BILL05:30-14:00Z4
9  Z5
10WILL13:00-21:30E1
11JUSTIN08:00-16:30AD
RSS LOGS
Cell Formulas
RangeFormula
T4:T11T4=IFERROR(IF($L$1=TRUE,INDEX('RSS BID'!$C$3:$Q$25,IF($O$1="SUNDAY",MATCH(V4,'RSS BID'!$E$3:$E$102,0),IF($O$1="MONDAY",MATCH(V4,'RSS BID'!$G$3:$G$102,0),IF($O$1="TUESDAY",MATCH(V4,'RSS BID'!$I$3:$I$102,0),IF($O$1="WEDNESDAY",MATCH(V4,'RSS BID'!$K$3:$K$102,0),IF($O$1="THURSDAY",MATCH(V4,'RSS BID'!$M$3:$M$102,0),IF($O$1="FRIDAY",MATCH(V4,'RSS BID'!$O$3:$O$102,0),IF($O$1="SATURDAY",MATCH(V4,'RSS BID'!$Q$3:$Q$102,0)))))))),1)),"")
U4:U11U4=IFERROR(IF($L$1=TRUE,INDEX('RSS BID'!$C$3:$Q$25,IF($O$1="SUNDAY",MATCH(V4,'RSS BID'!$E$3:$E$102,0),IF($O$1="MONDAY",MATCH(V4,'RSS BID'!$G$3:$G$102,0),IF($O$1="TUESDAY",MATCH(V4,'RSS BID'!$I$3:$I$102,0),IF($O$1="WEDNESDAY",MATCH(V4,'RSS BID'!$K$3:$K$102,0),IF($O$1="THURSDAY",MATCH(V4,'RSS BID'!$M$3:$M$102,0),IF($O$1="FRIDAY",MATCH(V4,'RSS BID'!$O$3:$O$102,0),IF($O$1="SATURDAY",MATCH(V4,'RSS BID'!$Q$3:$Q$102,0)))))))),$P$3)),"")
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,752
Messages
6,126,672
Members
449,327
Latest member
John4520

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