+ Reply to Thread
Results 1 to 9 of 9

Filter function to extract selected columns

  1. #1
    Forum Contributor
    Join Date
    03-12-2022
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    109

    Filter function to extract selected columns

    I am looking for a function that once I select criteria (column headers) that filter column data. Blue table is dynamic table, Green is where I select the column names, and purple is my desired output..
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Filter function to extract selected columns

    Clear EVERYTHING from K1 to L7, then in K1 and ENTER:

    =FILTER(Data[[#All],[Support Coordinator]:[Supervisor]],ISNUMBER(SEARCH(Data[[#Headers],[Support Coordinator]:[Supervisor]],TEXTJOIN(" ",,Table2[Select Column names]))))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

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

    Re: Filter function to extract selected columns

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

  4. #4
    Forum Contributor
    Join Date
    03-12-2022
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    109

    Re: Filter function to extract selected columns

    thanks but criteria could change. So if I add "Region" in Select Column Names table, filter should pull that column as well.....

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,772

    Re: Filter function to extract selected columns

    This, then:

    =FILTER(Data[#All],ISNUMBER(SEARCH(Data[#Headers],TEXTJOIN(" ",,Table2[Select Column names]))))

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

    Re: Filter function to extract selected columns

    Quote Originally Posted by KerahJoy View Post
    if I add "Region" in Select Column Names table, filter should pull that column as well.....
    The formula I suggested already does that.

  7. #7
    Forum Contributor
    Join Date
    03-12-2022
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    109

    Re: Filter function to extract selected columns

    that worked....thank you!

  8. #8
    Forum Contributor
    Join Date
    03-12-2022
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    109

    Re: Filter function to extract selected columns

    thanks Fluff13

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

    Re: Filter function to extract selected columns

    Glad to help & 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. [SOLVED] Using Advanced Filter to Extract data from certain Columns
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-01-2024, 04:59 AM
  2. [SOLVED] Extract from selected rows and columns to 2 different sheets.
    By RAJESH SHAH in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-21-2023, 04:09 AM
  3. Filter, Extract Columns of Interest
    By wbsgn12 in forum Excel General
    Replies: 4
    Last Post: 11-03-2022, 12:57 PM
  4. FILTER Function to Extract Data
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 07-16-2021, 07:54 AM
  5. [SOLVED] Extract unique list from each column of selected range of columns
    By arunsjain in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-12-2017, 11:57 PM
  6. Filter non-blanks from selected columns
    By rajivbravo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2012, 07:23 AM
  7. [SOLVED] Please Help - Macro or Function to Cut Selected on Custom Filter
    By sachin29feb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-07-2012, 11:12 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