+ Reply to Thread
Results 1 to 6 of 6

Index / Match based on column header

  1. #1
    Registered User
    Join Date
    06-16-2015
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    52

    Index / Match based on column header

    I have a file with two sheets:
    • Sheet A has the raw data.
    • Sheet B is a working sheet, where I add data from Sheet A.

    The column with employee ID's is static. The other columns are dynamic. Meaning the employee names are currently in column I, but this might change to column K tomorrow. It will constantly change, based on the changing needs in the upcoming days.

    Column H has the Employee ID's and will not change.

    An example formula is as follows.

    Please Login or Register  to view this content.
    Is it possible to replace the "[Employee Name]" part and have it refer to a cell value? In this case, it would be the value in cell I1, as the column header is "Employee Name"?

    Obviously, is there's a more logic solution, I'm also happy to hear. Many thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Index / Match based on column header

    If your data is an Excel Table then the name of the column should be all you need, I think. If it's not, then you should be able to do a MATCH for the column heading.

    If you need more detail, please upload a sample workbook so we can see the structure a bit more clearly.

  3. #3
    Registered User
    Join Date
    06-16-2015
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    52

    Re: Index / Match based on column header

    Thanks for the fast response, Nick.

    Attached an example sheet. The raw data can be found in the sheet "RAW_DATA" and is stored in an Excel table. The data in the Working Sheet is not. Right now, in the Working Sheet, the Job Title is loaded into column B. Instead of the Job Title, I might want to load the Location instead in column B. Instead of manually adjusting the formulas, I'd rather have the formula refer to the column header in the Working Sheet. For example, if would change the column header (in cell B1) to "Location", then it would automatically show the Locations instead of the Job Titles.

    Hope this clarifies what I'm looking for
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Index / Match based on column header

    In B2 of WORKING_SHEET, try:

    =INDEX(RAW_DATA_TABLE[#All],MATCH($A2,RAW_DATA!$A:$A,0),MATCH(B$1,RAW_DATA!$1:$1,0))

  5. #5
    Registered User
    Join Date
    06-16-2015
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    52

    Re: Index / Match based on column header

    Quote Originally Posted by nick.williams View Post
    In B2 of WORKING_SHEET, try:

    =INDEX(RAW_DATA_TABLE[#All],MATCH($A2,RAW_DATA!$A:$A,0),MATCH(B$1,RAW_DATA!$1:$1,0))
    Awesome! This is exactly what I was looking for. Thanks a ton, Nick. Much appreciated!

  6. #6
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Index / Match based on column header

    You're welcome

+ 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] find row header based on table and column headers reverse lookup index & match
    By jnsorrera in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2020, 02:08 AM
  2. [SOLVED] Index(a column with a header name XXX), then match a value
    By ENEMALI in forum Excel General
    Replies: 5
    Last Post: 11-24-2016, 07:54 PM
  3. Helped needed to index match row header, column header, and sheet
    By vw103604 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2016, 12:37 PM
  4. Using Lookup? Index match? to populate cells based on column header
    By NoExcelSkills17 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-15-2015, 03:50 PM
  5. [SOLVED] Index & Match for multiple Column and Row to find header...
    By mr-c in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-31-2014, 08:24 AM
  6. Return Column Header from Index/Match function
    By del24ie in forum Excel General
    Replies: 2
    Last Post: 01-12-2012, 11:57 AM
  7. Index/Match Function to Return column header
    By djmarsh51 in forum Excel General
    Replies: 2
    Last Post: 05-07-2010, 02:10 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