+ Reply to Thread
Results 1 to 8 of 8

SORT Data with FILTER function

  1. #1
    Registered User
    Join Date
    05-11-2017
    Location
    DUBAI
    MS-Off Ver
    Microsoft 365
    Posts
    41

    Post SORT Data with FILTER function

    I have applied UNIQUE and FILTER function to obtain required data from my 'DB sheet' to 'TR sheet'. But my output is not appearing as Sort order. How to fix this issue. Seeking an expert assistance. Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: SORT Data with FILTER function

    Wrap your current formula in the SORT function.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: SORT Data with FILTER function

    Here's a way to do it all in one:

    =LET(l,DB!B3:B57,p,DB!D3:D57,s,ROUND(SUMIF(l,l,p),0),SORT(FILTER(HSTACK(l,s),(DB!C3:C57="TR")*(DB!E3:E57="Discuss"))))

    If you REALLY need UNIQUE (not sure if you do), then:

    =LET(l,DB!B3:B57,p,DB!D3:D57,s,ROUND(SUMIF(l,l,p),0),SORT(UNIQUE(FILTER(HSTACK(l,s),(DB!C3:C57="TR")*(DB!E3:E57="Discuss")))))
    Attached Files Attached Files
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: SORT Data with FILTER function

    Seen, but no reply - did it help?

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  5. #5
    Registered User
    Join Date
    05-11-2017
    Location
    DUBAI
    MS-Off Ver
    Microsoft 365
    Posts
    41

    Re: SORT Data with FILTER function

    Sorry, I had some urgent work come up.
    Thanks for your reply. I checked the formula, and it's working.
    However, Is it possible to sort by total cost column? I would like to see the cost in descending order

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

    Re: SORT Data with FILTER function

    Yes:

    =LET(l,DB!B3:B57,p,DB!D3:D57,s,ROUND(SUMIF(l,l,p),0),SORT(UNIQUE(FILTER(HSTACK(l,s),(DB!C3:C57="TR")*(DB!E3:E57="Discuss"))),2,-1))

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Attached Files Attached Files
    Last edited by AliGW; 12-18-2023 at 06:40 AM. Reason: Workbook added.

  7. #7
    Registered User
    Join Date
    05-11-2017
    Location
    DUBAI
    MS-Off Ver
    Microsoft 365
    Posts
    41

    Re: SORT Data with FILTER function

    Excellent. Its working perfectly.
    Thank you for the support

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: SORT Data with FILTER function

    Great!

    Instructions for signing off the thread are above.

+ 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. Sort & Filter Function is not working
    By deannbennett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-14-2023, 05:41 PM
  2. unique sort function with filter
    By rayted in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-17-2022, 08:47 AM
  3. [SOLVED] Sort data using filter or sortby function (excel 365)
    By sunboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2021, 04:36 AM
  4. Losing formula integrity after using the sort and filter function
    By Pabb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2021, 08:43 AM
  5. [SOLVED] LOOKUP formula with 3 conditions and sort/filter function
    By JPSIMMON in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-12-2018, 07:25 PM
  6. Replies: 3
    Last Post: 06-30-2016, 04:32 PM
  7. Sort & Filter Function
    By number46 in forum Excel General
    Replies: 3
    Last Post: 01-23-2010, 09:51 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