+ Reply to Thread
Results 1 to 7 of 7

lookup formula to return data where column header matches

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    lookup formula to return data where column header matches

    Hi,
    I've got lots of data ordered differently on different spreadsheets that I want to merge onto one excel sheet. Is there a formula I can create to do a lookup for a column header in the top cell and if it matches, return the data beneath?

    Thanks
    Tim
    Attached Files Attached Files
    Last edited by tim-harrison; 02-05-2013 at 02:30 PM. Reason: adding attachment

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: lookup formula to return data where column header matches

    Suggest you post a spreadsheet with some sample data and explain the expected results.
    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

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: lookup formula to return data where column header matches

    Hi Tim,

    Welcome to the forum.
    You can use match with vlookup / index / offset to achieve the desired result. Try that and if stuck, upload a sample workbook. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    02-05-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: lookup formula to return data where column header matches

    I've uploaded an example that will hopefully make it clearer.. although there are many more fields in relaity I can't publish the actual spread sheet. I'm not sure how I'd write the formula, can you assist?
    Am very grateful for the help!

    Tim

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: lookup formula to return data where column header matches

    Hi Tim,

    Use below formula:-

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


    example(1).xlsm

    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Registered User
    Join Date
    02-05-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: lookup formula to return data where column header matches

    thanks - that's perfect!

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: lookup formula to return data where column header matches

    you are welcome time... cheers

    suggest you to mark this thread as [SOLVED].. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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