Hello, Excel wizards, I hope you are doing well.
I am trying to use Index/Match To locate the Nth instance of specific text.
The catch:
Nth instance can change
Both Criteria are in Col A
What I want to locate: Service ID for IDS where the Access number is 111111111 (Purple cell, Col A, in the pic)
Match to find *111111111* - check, Locates first instance (A6)
Match to find IDS - check, Locates first instance (A2)
I need to figure out how to tell Excel to find at each instance of the Access Number and look at the Row above it.
If/When Excel finds a cell that contains "IDS" then return the text in that cell.
K11 = Access Number
Access Number Minus 1 ROW = INDEX($A:$A,MATCH("*"&K11&"*",$A:$A,0)-1,1)
Final Code Format:
=INDEX(A:A,MATCH(1,Two Criteria,0),1)
Two Criteria = (A:A=Access Number Minus 1 ROW) * (A:A="IDS*")
(A:A=INDEX($A:$A,MATCH("*"&K11&"*",$A:$A,0)-1,1)) * (A:A="IDS*")
Closest I have to final code is:
=INDEX(A:A,MATCH(1,(A:A=INDEX($A:$A,MATCH("*"&K11&"*",$A:$A,0)-1,1)) * (A:A="IDS*"),0),1)
This isn't right because (Access Num - 1) = A5 & IDS* = A2
Stuck on how to get the two to triangulate properly and move down to each next instance of the Access Number.
Thanks.
I am trying to use Index/Match To locate the Nth instance of specific text.
The catch:
Nth instance can change
Both Criteria are in Col A
What I want to locate: Service ID for IDS where the Access number is 111111111 (Purple cell, Col A, in the pic)
Match to find *111111111* - check, Locates first instance (A6)
Match to find IDS - check, Locates first instance (A2)
I need to figure out how to tell Excel to find at each instance of the Access Number and look at the Row above it.
If/When Excel finds a cell that contains "IDS" then return the text in that cell.
K11 = Access Number
Access Number Minus 1 ROW = INDEX($A:$A,MATCH("*"&K11&"*",$A:$A,0)-1,1)
Final Code Format:
=INDEX(A:A,MATCH(1,Two Criteria,0),1)
Two Criteria = (A:A=Access Number Minus 1 ROW) * (A:A="IDS*")
(A:A=INDEX($A:$A,MATCH("*"&K11&"*",$A:$A,0)-1,1)) * (A:A="IDS*")
Closest I have to final code is:
=INDEX(A:A,MATCH(1,(A:A=INDEX($A:$A,MATCH("*"&K11&"*",$A:$A,0)-1,1)) * (A:A="IDS*"),0),1)
This isn't right because (Access Num - 1) = A5 & IDS* = A2
Stuck on how to get the two to triangulate properly and move down to each next instance of the Access Number.
Thanks.