+ Reply to Thread
Results 1 to 12 of 12

Index and Filter Functions: Workaround to sort, filter, and format within array?

  1. #1
    Registered User
    Join Date
    01-27-2021
    Location
    atlanta
    MS-Off Ver
    365 (Enterprise)
    Posts
    24

    Index and Filter Functions: Workaround to sort, filter, and format within array?

    Hi, I'm trying to use the index and filter functions to filter a couple columns from several based on a condition.

    =INDEX(FILTER(Table1[#Data],Table1[Group]='Source Data '!L2),SEQUENCE(ROWS(FILTER(Table1[#Data],Table1[Group]='Source Data '!L2))),{27,2,3,17,7,22,20,25,31,32,33,34})

    I also have conditional formatting that colors the "Name" cell based on a value to the left of it.

    But the dynamic array also limits any manipulation:
    1. I want to concatenate the Name and Title columns so that they're on separate lines in the same cell
    2. I want to bold and increase font size of name
    3. I want to be able to sort values in the array. So sort by values of names or by cell color. This isn't possible at the moment

    I cannot think of any better way to dynamically list data besides filter/index. I think a VBA may be the next choice, but I've attached an example to show what I'm asking. Any guidance is appreciated. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    Hi
    Do you use office365?

  3. #3
    Registered User
    Join Date
    01-27-2021
    Location
    atlanta
    MS-Off Ver
    365 (Enterprise)
    Posts
    24

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    Hi belinda, yes I'm using 365 app (for Business)

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    Hi
    You might want to update it in your profile so it would be easier to help.

  5. #5
    Registered User
    Join Date
    01-27-2021
    Location
    atlanta
    MS-Off Ver
    365 (Enterprise)
    Posts
    24

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    Ok thanks, just did

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

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    Part 2 cannot be done when the cell contains a formula.
    Part 3 you can sort the data in the formula, but not by colour and if you want to change the sort order or the column to be sorted you would have to change the formula.

  7. #7
    Registered User
    Join Date
    01-27-2021
    Location
    atlanta
    MS-Off Ver
    365 (Enterprise)
    Posts
    24

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    Hi Fluff, That's what I feared. Do you think if I use Vba to just list the values off to the side, that may be a better solution for sorting?

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

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    That really depends on what you want to do. The problem with using VBA is that it doesn't update automatically unless run from some Event code and doing that could cause problems with the speed & efficiency of the workbook.

  9. #9
    Registered User
    Join Date
    01-27-2021
    Location
    atlanta
    MS-Off Ver
    365 (Enterprise)
    Posts
    24

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    My thinking is to they can just click a button when they open the file and it'll copy the range from the filtered list, and paste the values off to the side in a table. So it doesn't need to update automatically but may be a compromise

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

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    You could use something like
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    01-27-2021
    Location
    atlanta
    MS-Off Ver
    365 (Enterprise)
    Posts
    24

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    That worked perfectly Thank you so much

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

    Re: Index and Filter Functions: Workaround to sort, filter, and format within array?

    You're welcome & thanks for the feedback.

+ 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() and FILTER() functions missing
    By Ricko_uk in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-24-2020, 11:16 PM
  2. Need help with an Array Formula to Filter and then Sort a Table
    By yach in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2020, 03:09 PM
  3. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  4. 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
  5. Index, Match , Auto-Filter, Sort
    By JG101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2016, 03:40 PM
  6. Sort and Filter 2D Dynamic Array
    By willia97 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2014, 07:34 AM
  7. [SOLVED] How to Stop the Macro from Disabling the Sort and Filter Functions?
    By bssol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2013, 08:45 AM

Tags for this Thread

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