I can find the 1st match of my data, but I'm having trouble finding the 2nd, 3rd, etc.
Column A has a name, with a random number at the end (separated by a colon). Example: "Name1 : 283"
Column B has a name based off of a type of result. Example: "Type 10"
Column C has my results I'm looking for.
My formula for the 1st instance looks like this:
Where E1 is the 1st criteria "Name1"
and E2 is the 2nd criteria "Type 02"
How can I find the nth instance?
I tried this but it doesn't work with the wildcard.
A simplified table looks like this (looking for the 3rd value of Name1):
<tbody>
</tbody>
Column A has a name, with a random number at the end (separated by a colon). Example: "Name1 : 283"
Column B has a name based off of a type of result. Example: "Type 10"
Column C has my results I'm looking for.
My formula for the 1st instance looks like this:
Where E1 is the 1st criteria "Name1"
and E2 is the 2nd criteria "Type 02"
Code:
{=INDEX(Sheet1!$C$1:$C$999,MATCH($E$1&"*"&"|"&$E$2&"*",Sheet1!$A1:$A999&"|"&Sheet1!$B1:$B999,0))}
How can I find the nth instance?
I tried this but it doesn't work with the wildcard.
Code:
=INDEX(Sheet1!O1:O999,SMALL(IF(Sheet1!$A1:$A999=($E$5&"*"),IF(Sheet1!C1:C999=$C$7,ROW(Sheet1!P1:P999))),3))
A simplified table looks like this (looking for the 3rd value of Name1):
Column A | Column B | Column C | Column D | Column E | |
1 | Name1 : 283 | Type 02 | 21.25 | Name1 | |
2 | Name1 : 283 | Type 10 | 58.21 | Type 15 | |
3 | Name1 : 187 | Type 15 | 11.85 | ||
4 | Name1 : 187 | Type 21 | 78.36 | Result Value | |
5 | Name2 : 155 | Type 10 | 70.22 | 11.85 | |
6 | Name2 : 155 | Type 11 | 92.18 | ||
7 | Name2 : 741 | Type 21 | 44.32 | ||
8 | Name3 : 533 | Type 02 | 18.64 | ||
9 | Name3 : 533 | Type 10 | 27.36 | ||
10 | Name3 : 432 | Type 11 | 1.87 | ||
11 | Name3 : 432 | Type 15 | 97.12 | ||
12 | Name3 : 432 | Type 21 | 17.64 | ||
13 | Name4 : 381 | Type X | # | ||
14 | Name5 : 631 | Type X | # | ||
15 | Name5 : 374 | Type X | # | ||
16 | Name5 : 877 | Type X | # | ||
17 | Name6 : 678 | Type X | # | ||
18 | Name7 : 258 | Type X | # | ||
19 | Name7 : 258 | Type X | # | ||
20 | Name8 : 211 | Type X | # |
<tbody>
</tbody>
Last edited: