+ Reply to Thread
Results 1 to 8 of 8

Listing ROW/COLUMN Headers for Unique data Value in Table

  1. #1
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Eagle River, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    145

    Listing ROW/COLUMN Headers for Unique data Value in Table

    I have a data table (see attached file) where I want to capture the ROW and COLUMN header for the sequential/unique data values [C18:C21]. I have tried INDEX/MATCH and cannot seem to create the proper syntax to make this happen. Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Listing ROW/COLUMN Headers for Unique data Value in Table

    Will there ever be duplicate values in the table B2:L12?

    If so,
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Eagle River, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    145

    Re: Listing ROW/COLUMN Headers for Unique data Value in Table

    Yes, there could be duplicate data values. :-(

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Listing ROW/COLUMN Headers for Unique data Value in Table

    Quote Originally Posted by fearonc View Post
    Yes, there could be duplicate data values. :-(
    See if you can adapt this...

    https://www.excelforum.com/showthread.php?p=3643149

    Good luck!
    Last edited by Tony Valko; 08-27-2015 at 08:18 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Listing ROW/COLUMN Headers for Unique data Value in Table

    Try theseARRAY formulas, adjusted from a formula from sktneer....
    http://www.excelforum.com/excel-gene...a-formula.html

    A18=INDEX($B$1:$L$1,SMALL(IF(ISNUMBER(SEARCH($C18,$B$2:$L$12)),COLUMN($B$1:$L$1)-COLUMN($B1)+1),1))
    B18=INDEX($A$2:$A$12,SMALL(IF(ISNUMBER(SEARCH($C18,$B$2:$L$12)),ROW($A$2:$A$12)-COLUMN($B1)+1),1))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Eagle River, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    145

    Re: Listing ROW/COLUMN Headers for Unique data Value in Table

    Reversing A18= into the B18 cell and B18= into the A18 cell achieved exactly what I needed! Thanks so much!!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Listing ROW/COLUMN Headers for Unique data Value in Table

    Quote Originally Posted by FDibbins View Post
    Try theseARRAY formulas, adjusted from a formula from sktneer....
    http://www.excelforum.com/excel-gene...a-formula.html

    A18=INDEX($B$1:$L$1,SMALL(IF(ISNUMBER(SEARCH($C18,$B$2:$L$12)),COLUMN($B$1:$L$1)-COLUMN($B1)+1),1))

    B18=INDEX($A$2:$A$12,SMALL(IF(ISNUMBER(SEARCH($C18,$B$2:$L$12)),ROW($A$2:$A$12)-COLUMN($B1)+1),1))
    Those formulas don't account for duplicates.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Listing ROW/COLUMN Headers for Unique data Value in Table

    Quote Originally Posted by Tony Valko View Post
    Those formulas don't account for duplicates.
    You are correct Tony

+ 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. Pivot Table Data to Column Headers
    By danielex in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-05-2015, 02:39 PM
  2. listing unique words below table
    By zico8 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2015, 03:49 PM
  3. [SOLVED] Listing unique values without Pivot Table.
    By bungslea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2013, 12:19 AM
  4. Listing unique values and summing w/o a pivot table
    By Drew Goldberg in forum Excel General
    Replies: 24
    Last Post: 02-16-2013, 09:52 PM
  5. [SOLVED] Listing all unique text combinations from three columns in a table
    By shabalgoel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2012, 10:33 AM
  6. Replies: 20
    Last Post: 05-15-2012, 04:42 AM
  7. Listing Unique Values from a Column
    By Rabi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2008, 09:39 AM

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