+ Reply to Thread
Results 1 to 7 of 7

Thread: Adding a Name Cell to a MIN Result

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    82

    Adding a Name Cell to a MIN Result

    I would like to add the name to the cell that contains the smallest number in a score sheet.

    Attached is a sample of what I am using. Where the MIN result cell shows the number, I would also like to add the corresponding name in that row.
    Attached Files Attached Files
    Last edited by NBVC; 08-09-2010 at 10:23 PM.

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

    Re: Adding a Name Cell to a MIN Result

    You can use:

    =INDEX($A$2:$A$11,MATCH(C12,C$2:C$11,0))

    copied down and to next column, but this will get only first name that matches the minimum, if there are several minimum matches.

    If you want all matches, then perhaps:

    =IF(ROWS($A$1:$A1)>COUNTIF(C$2:C$11,C$12),"",INDEX($A$2:$A$11,SMALL(IF(C$2:C$11=C$12,ROW(C$2:C$11)-ROW(C$2)+1),ROWS($A$1:$A1))))

    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down as far as you need to ensure all matches retrieved and then copy to next column.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    82

    Re: Adding a Name Cell to a MIN Result

    Hmmm. I'm afraid I may not have asked my question correctly.

    The current formula already gives a unique result for the minimum number. It will not provide a number that is a duplicate. I would like to substitute the number with the name that corresponds.

    In my example it currently is:

    B12- "Blank" C12- 3 D12- 5

    I want it to be:

    B12 - "Blank" C12- George D12- Tom

    Also, to make it more difficult, I will be using the cells in columns and rows from a different sheet in the workbook.

    Sorry for my confusing you. It's just that I am confused...

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,798

    Re: Adding a Name Cell to a MIN Result

    in b12
    =IF(COUNTIF(B2:B11,MIN(B2:B11))>1,"",INDEX($A2:$A11,MATCH(MIN(B2:B11),B2:B11,0))) dragged across
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    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

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Adding a Name Cell to a MIN Result

    I guess I misunderstood the question, then.. and looks like Martin came to the rescue.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Registered User
    Join Date
    07-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    82

    Re: Adding a Name Cell to a MIN Result

    Martin, that's exactly what I was looking for. Thank you.

  7. #7
    Registered User
    Join Date
    07-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    82

    Re: Adding a Name Cell to a MIN Result

    Quote Originally Posted by NBVC View Post
    I guess I misunderstood the question, then.. and looks like Martin came to the rescue.
    My question was a bit confusing, as I said earlier. Not your fault for misunderstanding. Thanks for your help.

+ 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.2.0