Index/Match - Multiple Or Criteria and nth value

josearistud

New Member
Joined
Dec 6, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello

I need help with the following. I'm using Index / Match to retrieve values from Column C. The criteria o retrieve those values are:

1. Values must have one of these statuses in Column A: Assigned, Working, Waiting, Transferred or Returned.
2. Values must have this status in Column L: Master Ticket

I need also the ability to tell the formula to continue with the second, third, fourth, values and so on. This is my issue here. The formula below retreives the value correctly based on criteria mentioned above, but I can't modify to continue with subsequent values after the first one has been retreieved.

Any help greatly appreciated.



Excel Formula:
=INDEX('Ticket Tracking Sheet'!$C7:$C20006,MATCH(1,('Ticket Tracking Sheet'!$A7:$A20006="Assigned")*('Ticket Tracking Sheet'!$A7:$A20006="Working")*('Ticket Tracking Sheet'!$A7:$A20006="Waiting")*('Ticket Tracking Sheet'!$A7:$A20006="Transferred")*('Ticket Tracking Sheet'!$A7:$A20006="Returned")+('Ticket Tracking Sheet'!$L7:$L20006="Master Ticket"),0)
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Maybe these options for extracting rows based on 1 & 2, You need to drag down "Extract" to return enough Master Ticket rows or "Extract2" formula spills down since you have Office 365.

Index Match - Multiple Or Criteria and nth value_josearistud.xlsx
ABCLMNO
6StatusValuesMasterTicketExtractExtract2
7AssignedValue1Master TicketValue1Value1
8WorkingValue2Master TicketValue2Value2
9WaitingValue3Value4Value4
10TransferredValue4Master TicketValue5Value5
11ReturnedValue5Master TicketValue7Value7
12AssignedValue6Value8Value8
13WorkingValue7Master TicketValue9Value9
14WaitingValue8Master TicketValue10Value10
15TransferredValue9Master Ticket 
16ReturnedValue10Master Ticket 
Ticket Tracking Sheet
Cell Formulas
RangeFormula
O7:O14O7=FILTER($C$7:$C$20006,(($A$7:$A$20006="Assigned")+($A$7:$A$20006="Working")+($A$7:$A$20006="Waiting")+($A$7:$A$20006="Transferred")+($A$7:$A$20006="Returned"))*($L$7:$L$20006="Master Ticket"),"")
N7:N16N7=IF(ROWS($N$7:N7)>COUNTIF($L$7:$L$20006,"Master Ticket"),"",INDEX($C$7:$C$20006,SMALL(IF((($A$7:$A$20006="Assigned")+($A$7:$A$20006="Working")+($A$7:$A$20006="Waiting")+($A$7:$A$20006="Transferred")+($A$7:$A$20006="Returned"))*($L$7:$L$20006="Master Ticket"),ROW($A$7:$A$20006)-ROW($A$6)),ROWS($N$7:N7))))
Press CTRL+SHIFT+ENTER to enter array formulas.
Dynamic array formulas.
 
Upvote 0
Maybe these options for extracting rows based on 1 & 2, You need to drag down "Extract" to return enough Master Ticket rows or "Extract2" formula spills down since you have Office 365.

Index Match - Multiple Or Criteria and nth value_josearistud.xlsx
ABCLMNO
6StatusValuesMasterTicketExtractExtract2
7AssignedValue1Master TicketValue1Value1
8WorkingValue2Master TicketValue2Value2
9WaitingValue3Value4Value4
10TransferredValue4Master TicketValue5Value5
11ReturnedValue5Master TicketValue7Value7
12AssignedValue6Value8Value8
13WorkingValue7Master TicketValue9Value9
14WaitingValue8Master TicketValue10Value10
15TransferredValue9Master Ticket 
16ReturnedValue10Master Ticket 
Ticket Tracking Sheet
Cell Formulas
RangeFormula
O7:O14O7=FILTER($C$7:$C$20006,(($A$7:$A$20006="Assigned")+($A$7:$A$20006="Working")+($A$7:$A$20006="Waiting")+($A$7:$A$20006="Transferred")+($A$7:$A$20006="Returned"))*($L$7:$L$20006="Master Ticket"),"")
N7:N16N7=IF(ROWS($N$7:N7)>COUNTIF($L$7:$L$20006,"Master Ticket"),"",INDEX($C$7:$C$20006,SMALL(IF((($A$7:$A$20006="Assigned")+($A$7:$A$20006="Working")+($A$7:$A$20006="Waiting")+($A$7:$A$20006="Transferred")+($A$7:$A$20006="Returned"))*($L$7:$L$20006="Master Ticket"),ROW($A$7:$A$20006)-ROW($A$6)),ROWS($N$7:N7))))
Press CTRL+SHIFT+ENTER to enter array formulas.
Dynamic array formulas.
Like Magic my friend. Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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