+ Reply to Thread
Results 1 to 2 of 2

Excel 365 filter formula: Return records in the column based on its header's text value

  1. #1
    Registered User
    Join Date
    01-14-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    12

    Excel 365 filter formula: Return records in the column based on its header's text value

    I know this is the criteria for the Filter function in Excel 365: =FILTER(array,include,[if_empty])

    I want to return results based the text in a column header. I won't know the column name (for example, if I want to search for the column with the "Person" header, the column number could change (the "Person" column could be C2, or E2, or something else)

    Can the "Include" criteria use Match? Something like. I'm having difficulty getting it to work:

    =FILTER(A1:F100, COLUMN( MATCH( "Person"), "--")

    Thank you
    Last edited by Tenmakk; 05-08-2021 at 08:52 PM.

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,901

    Re: Excel 365 filter formula: Return records in the column based on its header's text valu

    1. It's always best to attach a sample file with mocked up answers. See the Yellow banner at the top for more info.
    2. If you are using MS365 now, please update your profile

    3. Let's say you had an array you wanted to filter and this array was B2:E4 and B1 had the Headers, where one is = "Person" If you wanted to filter the array for just the rows where the value under "Person" was "test", you could use this:

    =FILTER(B2:E4,INDEX(B2:E4,,MATCH("Person",B1:E1,0))="test")

    See attached.
    Attached Files Attached Files

+ 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: 02-24-2020, 06:13 AM
  2. Return a column header based on text in a cell
    By sdeel1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2016, 03:02 PM
  3. Return column header based on column criteria and number value
    By bwill22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 07:33 PM
  4. [SOLVED] Return Value from column based on header value
    By SAsplin in forum Excel General
    Replies: 5
    Last Post: 07-16-2013, 07:46 AM
  5. [SOLVED] Return header column text if value in row below
    By Adrian W in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2012, 09:05 PM
  6. Replies: 2
    Last Post: 08-09-2012, 09:16 AM
  7. [SOLVED] Trying to return a column header in a cell based on a value
    By brianfromla in forum Excel General
    Replies: 2
    Last Post: 06-26-2012, 10:37 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