Forum Discussion
Xlookup Return second match.
Hi, dshawSLDC
I dont think you can do that with Xlookup. But if you have Xlookup, you also might have Filter?
Filter rows with your conditition. Select wanted row using Index:
=INDEX(FILTER(Tabell1;Tabell1[District]="Abc");G2) Where G2 is the row number you want.
Best Regards
- Geir
- dshawSLDCJun 11, 2021Brass Contributor
This Did the Trick
{=INDEX(Data[Student],SMALL(IF(Data[District]=Invoice!A7,ROW(Data[District])-ROW(INDEX(Data[District],1,1))+1),2))}Now I just Need to find away to stop when it reaches the last row.
- Detlef_LewinJun 11, 2021Silver Contributor
- dshawSLDCJun 11, 2021Brass Contributor
This partially works if i switch it to column instead of row. Do you know if there is a way to only show the 2nd match or third, fourth, nth.... ? I have attached an example I would like the ability to add spaces between the retuned matches depending on certain criteria.
Thanks again for your help.