+ Reply to Thread
Results 1 to 7 of 7

Finding the row and column header for a value in a matrix

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    4

    Post Finding the row and column header for a value in a matrix

    LS.

    I am working on a lage matrix with row headers in column A and column headers in row 1.
    All data in the sheet is numerical data and unique (loads of numbers behind the comma).

    using the LARGE formula I sorted all data from high to low but now I want for each data item to see the associated row and column labels.
    I tried using the RLrow and RLcol formula's unfortunately unsuccesful. #NAME error message.

    Hope you can help me set this up

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Finding the row and column header for a value in a matrix

    =VLOOKUP()/HLOOKUP() or =INDEX(MATCH()) should do the trick. What are the dimensions of your data-table?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    05-21-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    4

    Post Re: Finding the row and column header for a value in a matrix

    Quote Originally Posted by Søren Larsen View Post
    =VLOOKUP()/HLOOKUP() or =INDEX(MATCH()) should do the trick. What are the dimensions of your data-table?
    The dimensions are: A1:QI450
    Using V/HLOOKUP will not give me the data labels in the A column or row 1 as these formula's only seek for values to the right/down from the lookup value. I need to find the labels in the first column and first row of the dataset.

    Regards,

    Johan

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Finding the row and column header for a value in a matrix

    EDIT: Do you want to return row/column headers in a table, or are you looking up one value at a time?

    When you sort the data, do sort both on columns and rows, or only on one of them?
    Last edited by Søren Larsen; 05-21-2012 at 08:15 AM.

  5. #5
    Registered User
    Join Date
    05-21-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Finding the row and column header for a value in a matrix

    Quote Originally Posted by Søren Larsen View Post
    EDIT: Do you want to return row/column headers in a table, or are you looking up one value at a time?

    When you sort the data, do sort both on columns and rows, or only on one of them?
    Thanks Søren,

    imagine the following partial sheet with unique numbers in it:

    apple pear banana
    red 32 67 99
    green 55 94 12
    blue 43 66 18

    From the LARGE funktion LARGE(B2:D4,1) I get the largest value as 99 in cell D2.

    Now my problem is I would like a function to search for 99 in the spreadsheet en return me the column and row names for that value, so in the case of 99 red as row and banana as colum.

    Regards,

    Johan

  6. #6
    Registered User
    Join Date
    05-21-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Finding the row and column header for a value in a matrix

    Additional: The data is not sorted and refresed (potentially changes) evertime the sheet is opened.
    Looking up 1 row/column header at a time is fine.

  7. #7
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: Finding the row and column header for a value in a matrix

    Hi Johan,

    I had a similar query a few days back, I think the same might work for you.

    http://www.excelforum.com/excel-work...49#post2793949

    Please note that you may have to modify it for you to get the row and column headers

    Regards,

    Veejar

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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