+ Reply to Thread
Results 1 to 2 of 2

Need to find unique name across multiple columns and then list the column header.

  1. #1
    Registered User
    Join Date
    04-30-2015
    Location
    Australia
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    1

    Exclamation Need to find unique name across multiple columns and then list the column header.

    ---------A----------B ----------C--------D
    1-------R1---------TS---------RA-------DB
    2-------7c*--------1-------------------455-5p
    3-------7e*--------1207-3p-----------183
    4-------100--------122----------------4446-3p
    5-------100*-------1253---------------------
    6-------101*------------------1254-------
    7-------103-2*----------------1256-------
    8-------103-as----------------1257-------

    So my spreadsheet looks like this. And there are many multiples across the columns.
    What i want is;

    A: A formula that will list the unique values in a vertical column next to the data.
    EDIT: Managed this on my own using
    =INDIRECT(TEXT(MIN(IF(($B$14:$G$500<>"")*(COUNTIF($I$13:I499,$B$14:$G$500)=0),ROW($14:$500)*100+COLUMN($B:$G),7^8)),"R0C00"),)&""
    I know none of my columns go over 500, nor are there more than 500 unique values, but if there is a cleaner way to do this please let me know.


    B: A formula that will then vertically list the column headers from columns that contain this value. [Example 1]
    So far I have this:
    =INDEX($B$13:$G$13,MAX(IF($B$14:$G500=K14,COLUMN($B$14:$G$500)-COLUMN($B13)+1)))
    But it only returns the first instance of the value - not all column headers. I know this is because I'm using max - but surely this can be adapted?

    Any help would be greatly appreciated.

    Second less important problem is that I have 2 or more rows that need to be merged, but the cells contain "lists" eg.
    R1, TA, AB
    R2, TA
    And I want the cell to look like this in the end:
    R1, TA, AB, R2
    (The order is not important just the unique count)
    [Example 2]

    I have 40 or so spreadsheets that are 400 unique characters strong (I really need to automate this but I'm a beginner when it comes to excel)

    Thanks so much for any help!
    Zen
    Attached Files Attached Files
    Last edited by Zenithfall; 05-01-2015 at 01:37 AM. Reason: progress

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need to find unique name across multiple columns and then list the column header.

    Hi there... and welcome to the Excel Forum. Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. [SOLVED] Index & Match for multiple Column and Row to find header...
    By mr-c in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-31-2014, 08:24 AM
  2. VBA code to convert multiple rows as column header grouped by unique key
    By Shreyas11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2014, 09:03 PM
  3. Replies: 9
    Last Post: 10-14-2013, 07:55 PM
  4. Combine multiple columns into one column with header and date in another column
    By JJadams in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-12-2012, 05:30 PM
  5. [SOLVED] Compare multiple column of data and list out common and unique component in adj columns
    By kuansheng in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-01-2006, 06:55 PM

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