+ Reply to Thread
Results 1 to 8 of 8

Sort index match if condition

  1. #1
    Registered User
    Join Date
    03-31-2014
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Sort index match if condition

    I'm wanting to return a list of orders, that have been shipped, while sorting them from oldest to newest. The table would look something like this.

    Dates________PO#__Shipped_____Return
    6/8/2014_____123_____x________963
    6/4/2014_____456_____ ________741
    6/6/2014_____789_____x________753
    6/3/2014_____963_____x________789
    6/6/2014_____852_____ ________123
    6/4/2014_____741_____x________
    6/3/2014_____159_____ ________
    6/5/2014_____753_____x________

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: Sort index match if condition

    Post sample file with expected result

  3. #3
    Registered User
    Join Date
    03-31-2014
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sort index match if condition

    Here you go. :]
    Sample.xlsx

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: Sort index match if condition

    =IFERROR(INDEX($B$2:$B$9,MATCH(SUMPRODUCT(LARGE(($A$2:$A$9+ROW($A$2:$A$9)*0.0000001)*($C$2:$C$9="x"),COUNTIF($C$2:$C$9,"x")-ROWS(E$2:E2)+1)),INDEX(($A$2:$A$9+ROW($A$2:$A$9)*0.0000001),0),0)),0)
    try this in "E2" and copy towards down

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: Sort index match if condition

    you can use pivot table also

  6. #6
    Registered User
    Join Date
    03-31-2014
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sort index match if condition

    What are the *0.0000001 for?

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: Sort index match if condition

    This helps to catch the date which comes more than 1 time

  8. #8
    Registered User
    Join Date
    03-31-2014
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sort index match if condition

    Thank you, this has helped me a lot.

+ 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. [SOLVED] Vlookup (IFS) 3 Condition Model Using Index /Match
    By Winship in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2014, 07:06 PM
  2. A- Z Sort breaking with Index Match
    By Vaslo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-15-2013, 05:22 PM
  3. index match sort problem
    By score in forum Excel General
    Replies: 2
    Last Post: 08-30-2012, 09:38 PM
  4. [SOLVED] Using AutoFilter to Sort Data Pulled in by INDEX / MATCH
    By A Romeo Jr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2006, 07:50 PM
  5. Using INDEX, MATCH, but need condition
    By philiphales in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-25-2005, 10:27 AM

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