Forum Discussion

Jess_Ora's avatar
Jess_Ora
Copper Contributor
Feb 21, 2022
Solved

Using Index+Match with Or function to find nth Value

Hello everyone, I tried to find the solution but still cant. I have an data list as below. I want to get the nth value which match below criteria: if A = "Ongoing" and B = "QU" or "TN", resu...
  • HansVogelaar's avatar
    Feb 21, 2022

    Jess_Ora 

    Enter the value of n in (for example) E2.

    In F2:

    =IFERROR(INDEX($C$2:$C$6,SMALL(IF(($A$2:$A$6="Ongoing")*(($B$2:$B$6="QU")+($B$2:$B$6="TN")),ROW($C$2:$C$6)-ROW($C$2)+1),E2)),"")

    If you don't have Microsoft 365 or Office 20221, confirm the formula with Ctrl+Shift+Enter.

    See the attached sample workbook,

Resources