+ Reply to Thread
Results 1 to 4 of 4

Find unique number in columns and return column title

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230

    Find unique number in columns and return column title

    In the attached file are there three colums with unique data. I want to find the column where the number in A1 exist, and end up with the column name in A2. Do you have any suggestion regarding the formula I can use in A2.

    I know that this can be solved by a lot of IF's, but I prefer something that is easier to check and review.
    Attached Files Attached Files
    Last edited by mkvassh; 10-21-2010 at 10:30 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find unique number in columns and return column title

    If you have just the three columns you could just run three separate tests but in general terms:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Find unique number in columns and return column title

    try this formula in a2
    =INDEX(C1:E1,MAX((C1:E11=A1)*COLUMN(C1:E11)-MIN(COLUMN(C1:E11))+1))
    array entered with ctrl+shift+enter
    so that {} appear around it
    see link in my signature
    hmm i see donkyote has posted a different way and noticed you probably use ; not , as separator very astute!
    Last edited by martindwilson; 10-21-2010 at 10:25 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Bryne, Norway
    MS-Off Ver
    Microsoft Office Excel 2010
    Posts
    230

    Re: Find unique number in columns and return column title

    Thanks again both of you :-) This forum is as always very good and I have recommended it to several people.

    I have used martindwilson's answer.

+ 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