+ Reply to Thread
Results 1 to 3 of 3

Advanced - Return Header in X and Y Axis for Specific Value in Table

  1. #1
    Registered User
    Join Date
    01-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    2

    Advanced - Return Header in X and Y Axis for Specific Value in Table

    I have a large data set about 300x300 with a column and row header (first row of X and Y axis serves as header). I have made a sheet where each cell in the 300x300 matrix returns a TRUE or FALSE value. I need a formula that will return the header (X and Y axis) for each cell with value "TRUE". So ideally, if i had rows labeled A, B, C, etc and columns labeled A, B, C, etc, if the cell in (B,B) were TRUE, i could see an output where I get a return (B,B). Much thanks in advance for any help you can provide!
    Last edited by NBVC; 02-01-2012 at 08:57 AM.

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

    Re: Advanced - Return Header in X and Y Axis for Specific Value in Table

    Here is the way I would do it.

    Say your table is in A1:F7 with column headers in B1:F1 and row headers in A2:A7... so main data is in B2:F7

    in a free row below, say in B8 enter helper formula:

    Please Login or Register  to view this content.
    and copy across. This cumulatively counts the number of TRUE results in the columns.

    Then to get the Column headers, use formula:

    Please Login or Register  to view this content.
    adjust the ranges (except $A$2:$A2) to suit your data, then confirm the formula with CTRL+SHIFT+ENTER not just ENTER and copy down.

    and for the Row headers, assuming the formula above was put in J2:

    Please Login or Register  to view this content.
    also adjust relevant ranges and confirm with CTRL+SHIFT+ENTER not just ENTER and copied down.

    You can then make a column that concatenates them, if desired.

    See attached
    Attached Files Attached Files
    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-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Advanced - Return Header in X and Y Axis for Specific Value in Table

    Brilliant! Works perfectly, thanks very much!

+ 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