+ Reply to Thread
Results 1 to 10 of 10

Combining FILTER and SORTBY formulas

  1. #1
    Registered User
    Join Date
    11-04-2021
    Location
    Schenectady,NY
    MS-Off Ver
    365
    Posts
    4

    Combining FILTER and SORTBY formulas

    Looking to combine the two formulas below where G51 displays in alphabetical order and then G52 displays in alphabetical order right below, I have successfully joined the two formulas but cant get the right sort order that I'm looking to achieve - Thanks in advance.

    =FILTER(SORTBY('CDComp'!D:D,1),'CDComp'!A:A=G51)
    and
    =FILTER(SORTBY('CDComp'!D:D,1),'CDComp'!A:A=G52)

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Combining FILTER and SORTBY formulas

    Try this:

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

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Combining FILTER and SORTBY formulas

    Please see the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    11-04-2021
    Location
    Schenectady,NY
    MS-Off Ver
    365
    Posts
    4

    Re: Combining FILTER and SORTBY formulas

    With the below formula I'm able to get all the results I'm looking for however is does not sort correctly , just groups all data together, I need separated out A31 with A32 right below. Example A is using below formula, column C is how I would like it to sort.

    =UNIQUE(SORTBY(FILTER('CDComp'!D:D,('CDComp'!A:A=A31)+('CDComp'!A:A=A32)),1,-1))
    Attached Files Attached Files
    Last edited by Ctromb; 11-04-2021 at 04:18 PM. Reason: adding attachment

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Combining FILTER and SORTBY formulas

    The following formula, pasted into cell A3 on Sheet1 and copied down to cell A29, produces the same list as given in column C:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    11-04-2021
    Location
    Schenectady,NY
    MS-Off Ver
    365
    Posts
    4

    Re: Combining FILTER and SORTBY formulas

    Exactly what I was looking for, Thank You for your time, I look forward to dissecting and trying to understand each step.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Combining FILTER and SORTBY formulas

    With dynamic arrays you can use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    11-04-2021
    Location
    Schenectady,NY
    MS-Off Ver
    365
    Posts
    4

    Re: Combining FILTER and SORTBY formulas

    Thank You for your time, looking back at my attempts I was close to this but never quite got it right - Thanks Again.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Combining FILTER and SORTBY formulas

    Glad to help & thanks for the feedback.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Combining FILTER and SORTBY formulas

    Glad that you got a workable formula. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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: 2
    Last Post: 10-24-2021, 08:03 AM
  2. [SOLVED] SortBy + Filter Formula
    By ionelz in forum Excel General
    Replies: 9
    Last Post: 10-09-2021, 06:56 AM
  3. [SOLVED] New formulas SORT & SORTBY - can I use it with not neighboring columns?
    By afgi in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-28-2021, 07:44 AM
  4. [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
  5. Office 365 SORTBY Function not working with INDIRECT and Office ProPlus
    By ExcelWombat in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-13-2021, 01:18 AM
  6. Inserting SORTBY formula in range does not work
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2020, 11:41 AM
  7. Combining a label filter with a (blank) filter
    By amphinomos in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-07-2014, 03:50 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