• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sorting issue with Index+Match function

@Gopigk

Member
Hi All

Help required in sorting data in Index+Match formula. Formula working correctly, but facing issue in sorting data. Unlike V-Look up, it's giving wrong sort result. Herewith i attached sample file, can anybody help on this. I need same as v-lookup sorting , which is also specified on this file.
 

Attachments

  • Sample file.xlsx
    13.3 KB · Views: 13
In B3 copied across and down:

=IFERROR(INDEX(Data!$A:$C,MATCH(Result!$A3,Data!$B:$B,0),MATCH(Result!B$2,Data!$A$1:$C$1,0)),"Fail")

You had not correctly defined all of your ranges.
 
Hi Ali, Thanks for reply

It's O-365. My formula is working fine. But when I tried to sort the data based on B or C column with the intention of all Fail's are at down, but I'm unable. Pls suggest
 
Office 365:
Single cell formula in C2:
Code:
=SORT(HSTACK(A2:A11,IFERROR(INDEX(Data!A1:C7,MATCH(A2:A11,Data!B1:B7,0),{3,1}),"fail")),2)
80801
 

Attachments

  • Chandoo48809Sample file.xlsx
    13 KB · Views: 5
Note that HSTACK is currently only available to Office Insider Beta subscribers.
 
Back
Top