+ Reply to Thread
Results 1 to 14 of 14

Combining dynamic array functions

  1. #1
    Registered User
    Join Date
    06-17-2012
    Location
    Bristol
    MS-Off Ver
    Excel 365 Mac
    Posts
    25

    Combining dynamic array functions

    I am amazed at the lack of internet help on this subject. I have searched high and low for detailed pieces about the syntax of combining more than one dynamic array functions, specifically for my needs, the SORT and FILTER functions and the SORTBY and FILTER functions.

    I need to be able to process a table of data and both sort it by a number of columns but also filter either multiple values from just one column or values in multiple columns.

    Can anyone help me learn how to do this? I understand the basic syntax of the SORT, SORTBY and FILTER functions; it's the combining of them that is eluding me and there's just almost nothing out there to help.

    I am attaching a sample file that I've been experimenting with.

    Many thanks.



    Andrew
    Attached Files Attached Files

  2. #2
    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: Combining dynamic array functions

    It's not very clear what you want to do... but here are a couple of things to start you off:

    =SORT(UNIQUE(FILTER(Table1[Product],Table1[Class of product]="Food")))

    =SUMIF(Table1[Product],H3#,Table1[Cost])
    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

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

    Re: Combining dynamic array functions

    Somewhat more involved
    =SORTBY(FILTER(FILTER(Table1,Table1[Class of product]="Alcohol"),COUNTIF(H2:J2,Table1[#Headers])),FILTER(Table1[Variance],Table1[Class of product]="Alcohol"),-1)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-17-2012
    Location
    Bristol
    MS-Off Ver
    Excel 365 Mac
    Posts
    25

    Re: Combining dynamic array functions

    Many thanks for your swift reply.

    In answer to your question: it's not really what I want to do with the data - it was just sample cell entries I created; it's knowing the syntax of combining the two functions - how they are combined together. Once I know how to put it all together I am sure I'll be fine. It's just the complete absence of help on the internet which frustrated and surprised me: I thought there'd be a massive amount of stuff since dynamic array functions are relatively new.

    Regards.



    Andrew

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Combining dynamic array functions

    don't quite understand what you actually want, but maybe this can help

    https://www.youtube.com/watch?v=Onudkw9DMlU

  6. #6
    Registered User
    Join Date
    06-17-2012
    Location
    Bristol
    MS-Off Ver
    Excel 365 Mac
    Posts
    25

    Re: Combining dynamic array functions

    Thank you for your response. I'm sorry that I'm not making myself clear. All I want to know is how you actually combine the two functions when you are building your formula. I know the syntax of FILTER; I know the syntax of SORT and SORTBY but there's nothing I've found that tells you how you build a formula combining the two [SORT/FILTER or SORTBY/FILTER].

    Regards.



    Andrew

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

    Re: Combining dynamic array functions

    Have you taken a look at the examples that Glenn & I supplied?

  8. #8
    Registered User
    Join Date
    06-17-2012
    Location
    Bristol
    MS-Off Ver
    Excel 365 Mac
    Posts
    25

    Re: Combining dynamic array functions

    Yes, thank you - much appreciated. I see that you include a COUNTIF function in the formula. The same goes for using the UNIQUE function.

    It's probably better if I gave an example of the sort of thing I'd like to be able to do. I'd like to, for example, filter out 'Beverages' and 'Alcohol (so that's filtering two products in one column) and then sort by date and price. Alternatively, I'd like to filter out, say, 'Meat' in one column and cost under £10 in another and sort just by budget variance. I hope that makes things a little clearer.

    I just want a template (effectively) to be able to create those sorts of formulae.

    Regards.




    Andrew

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

    Re: Combining dynamic array functions

    Do you have the LET function

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

    Re: Combining dynamic array functions

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The first one can be simplified if you have the LET function.

  11. #11
    Registered User
    Join Date
    06-17-2012
    Location
    Bristol
    MS-Off Ver
    Excel 365 Mac
    Posts
    25

    Re: Combining dynamic array functions

    Many thanks. Yes, I do have the LET function but haven't used it or have the first clue what it does. What you have posted above, however, is going to be really useful since it will enable me to try to work out how the syntax works with combining the two functions: that's all I wanted to know. If. however, this LET function can help, too, I'd be very interested to know how it works.

    Regards.



    Andrew

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

    Re: Combining dynamic array functions

    The LET formula enables you to store information in variables so that you only need to calculate things once. This is the same as the Sortby formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    06-17-2012
    Location
    Bristol
    MS-Off Ver
    Excel 365 Mac
    Posts
    25

    Re: Combining dynamic array functions

    Unfortunately I don't have the LET function at work. Presumably this is not yet implemented for all 365 users, just those on the inside rtacdk.

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

    Re: Combining dynamic array functions

    AFAIK all users on the monthly channel have it, not sure about the semi annual channel.

+ 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: 9
    Last Post: 08-21-2019, 04:19 PM
  2. [SOLVED] Combining Multiple Individual Functions Into One With Dynamic Lookup Capability
    By censo in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-18-2018, 07:18 PM
  3. Combining concatenate and filter functions in an array formula
    By marece2016 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2017, 04:04 PM
  4. Combining multiple functions>lookup/sum functions
    By mush106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2013, 07:47 AM
  5. VBA: Transferring Dynamic Array with data between functions
    By Sugarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2012, 10:35 AM
  6. Replies: 1
    Last Post: 02-10-2012, 05:27 PM
  7. Replies: 2
    Last Post: 07-13-2006, 11:30 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