+ Reply to Thread
Results 1 to 8 of 8

Filter function to extract selected columns by Header match

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

    Filter function to extract selected columns by Header match

    AliGW and Fluff13 gave me good solutions for this but I need a slight variation.

    I am looking for a function which pulls data from blue table based on Deisired outcome header labels.

    Desired outcome has preset headers and I need to filter from blue table from the associated Data columns.
    Attached Files Attached Files
    Last edited by KerahJoy; 08-16-2024 at 10:02 PM. Reason: edit

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,378

    Re: Filter function to extract selected columns by Header match

    Hi KerahJoy,

    I'm not sure what you are asking in this question. Does G1 change values and you want to filter on that? Can you give a better example??

    Have you seen AutoFilters in a Table?? Is that really what you are looking for?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Filter function to extract selected columns by Header match

    Delete delete
    Last edited by josephteh; 08-16-2024 at 10:39 PM.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Filter function to extract selected columns by Header match

    With Power Query

    let
    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Filter function to extract selected columns by Header match

    Convert Header to Table, untick "My table has headers", then hide Header Row
    H2: =CHOOSECOLS(Data,MATCH(Outcome[#All],Data[#Headers],0))
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Filter function to extract selected columns by Header match

    Type "Region" in cell J1, the table should re-size to cover cell J1 and the formula should self-expand.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Filter function to extract selected columns by Header match

    If you wish to select the columns as a variable, then look at the attached where you select the column names and then select Refresh All in the Data Tab. This is called a parameter query in Power Query
    Attached Files Attached Files

  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 by Header match

    Thank you all

+ 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] Filter function to extract selected columns
    By KerahJoy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-16-2024, 10:43 AM
  2. [SOLVED] Match and Extract -LAMBDA,MAP,FILTER
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 02-02-2024, 04:55 AM
  3. [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
  4. Filter on Header cell of columns with drop-down menu
    By Spursgirl in forum Excel General
    Replies: 7
    Last Post: 11-10-2020, 01:07 PM
  5. Match Criteria in Range & Extract Column Header
    By sp0ck1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-26-2018, 06:27 AM
  6. [SOLVED] Extract selected column data based on column header info
    By ajay6985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2017, 02:07 AM
  7. [SOLVED] Offset/Match? Chart by selected start/end date and col header
    By Steve N. in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-12-2013, 02:06 PM

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