+ Reply to Thread
Results 1 to 15 of 15

Index Match with sort capability?

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Index Match with sort capability?

    Hi all,

    I came to a dead end and can't figure this out.
    Explaining the issue:

    I have 3 sheets on my Excel file -> Sheet 1: main dashboard where all the results will appear, Sheet 2: Info sheet where is listed all possible product SKU's with descriptions and types + in what kind of order the SKU should come ( from 1 to 2), Sheet 3: user paste inside the data.

    So my goal is when the user paste in the data in sheet 3 then in sheet 1 automatically filters out the data and sorts it in the order specifically so it is in order from 1 to 2. There could be multiple type 1 SKU's but never the same so first I would need the list to contain all order type 1 sku's and then all order type 2 sku's.

    Untitled.png

    I've attached the sample file.
    If anyone has an idea how to do this I would really appreciate it.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,310

    Re: Index Match with sort capability?

    Do you still have Excel 2016?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    Unless you have upgraded... this is quite complicated. No surprises that you came to a dead end.

    If you have upgraded to O365 - say so and ignore this. If not, play with it and see if it works as planned. I'll then explain HOW it works. Don't copy it into your real sheet YET. It uses 2 named Ranges (CTRL-F3 to view/edit) to deliver a "virtual interim table".
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    If you DO have a recent version of O365, you can do the lot in a single cell, using this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Delete ALL expected results, first. the only bits you (should) need to adjust are the bits in red (above).
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Index Match with sort capability?

    Quote Originally Posted by Glenn Kennedy View Post
    Unless you have upgraded... this is quite complicated. No surprises that you came to a dead end.

    If you have upgraded to O365 - say so and ignore this. If not, play with it and see if it works as planned. I'll then explain HOW it works. Don't copy it into your real sheet YET. It uses 2 named Ranges (CTRL-F3 to view/edit) to deliver a "virtual interim table".
    Thank you, Glenn,

    This worked perfectly.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,310

    Re: Index Match with sort capability?

    In that case, you need to update your forum profile to O365, please.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    I'm a bit confused was it the O365 version that worked, or the earlier one (which may need further explanation).

    If all's good...

    You're welcome. If not, ask.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  8. #8
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Index Match with sort capability?

    Quote Originally Posted by Glenn Kennedy View Post
    I'm a bit confused was it the O365 version that worked, or the earlier one (which may need further explanation).

    If all's good...

    You're welcome. If not, ask.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

    Glenn,

    The first solution worked well - I have an O365 version but the second solution is way complex for me to understand the LAMDA formulas etc. First one is more clear and I can edit it if I really would need to.

    A question - would it be possible to implement a nested SORT ( or any other function ) that would still make a list in "order" but would look for the TYPE from another column in INFO sheet that contains types : from S7 till S1 and S7 always on top etc. If that makes sense?

    Attachment 829079

    I've attached the example file.
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    SORT is available in O365. Modifying the existing O365 formula would be easy enough.

    But... you want a formula that uses some O365 functions, but not all the ones that make the job easy.

    You're asking me to fight with one hand tied behind my back!!

    What functions do you not want me to use?

  10. #10
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Index Match with sort capability?

    Quote Originally Posted by Glenn Kennedy View Post
    SORT is available in O365. Modifying the existing O365 formula would be easy enough.

    But... you want a formula that uses some O365 functions, but not all the ones that make the job easy.

    You're asking me to fight with one hand tied behind my back!!

    What functions do you not want me to use?
    If you can achieve the end result with modifying the existing O365 formula then please go ahead. I will try to understand it and for sure will learn something new.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    Here's the optimim solution...


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    If you want to see what it is doing at each stage... use this slight variant:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Replace the final F (in red) with ANY of the earlier abbreviations (Inf and Pst are obvious...) so start with A and see what it does...

    REDUCE is a hard one to try to explain... but I can try, if/when you get stuck

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    And... if it makes feel any better... I hadn't a clue what REDUCE did until about 6 months ago... when I determined to pick it up from others on this site who can make it sit up and whistle...

    I stand on the shoulders of giants...

  14. #14
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Index Match with sort capability?

    Quote Originally Posted by Glenn Kennedy View Post
    If you want to see what it is doing at each stage... use this slight variant:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Replace the final F (in red) with ANY of the earlier abbreviations (Inf and Pst are obvious...) so start with A and see what it does...

    REDUCE is a hard one to try to explain... but I can try, if/when you get stuck
    Thank you. This simple explanation was all I needed to understand how it works. It reminds me a bit of javascript to be honest with Let function, didn't know we have on in excel. Thanks again.

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match with sort capability?

    Well there you are now... I know nothing about Javascript. 1-0 to you!!

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  2. [SOLVED] How to Sort Index Match Countif?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-24-2017, 07:37 PM
  3. [SOLVED] Index/match sort issue
    By julesmctavish in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-02-2016, 04:43 PM
  4. Index & Match - Sort Dilemma
    By Anthonycess in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2015, 11:30 AM
  5. Sort index match if condition
    By Ravenousdead in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2014, 12:24 PM
  6. A- Z Sort breaking with Index Match
    By Vaslo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-15-2013, 05:22 PM
  7. index match sort problem
    By score in forum Excel General
    Replies: 2
    Last Post: 08-30-2012, 09:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1