+ Reply to Thread
Results 1 to 3 of 3

Return Column Header from Index/Match function

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Cork, IReland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Return Column Header from Index/Match function

    Have looked everywhere to try and solve this, not sure if it can be done, anyhow here goes.

    I want to lookup the value in cell c2 in the 1st column of an array (F1:U23) and return it's row reference in that array (that's no problem). I then want to match the value in cell b2 in that row and return the coumn header from (F1:U1).

    I want to achieve this for a list a values from c2:c8762 and b2:b8762.

    Is it possible maybe to use a cell reference for a row range/ lookup array?

    The spreadsheet is attached.

    All input greatly appreciated.
    Attached Files Attached Files
    Last edited by NBVC; 01-12-2012 at 01:23 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Column Header from Index/Match function

    Try:

    =IFERROR(INDEX($M$1:$AA$1,MATCH(B2,INDEX($M$2:$AA$23,MATCH(C2,$L$2:$L$23,1),0),-1)),"")

    copied down.

    Blank returned if number in column B is bigger than largest value in respective row for column A value.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Cork, IReland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Return Column Header from Index/Match function

    Very impressive and fast, many thanks

+ 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