+ Reply to Thread
Results 1 to 10 of 10

Find minimum value(s) in column and gather corresponding name from another column

  1. #1
    Registered User
    Join Date
    09-28-2015
    Location
    Midwest
    MS-Off Ver
    2010
    Posts
    3

    Find minimum value(s) in column and gather corresponding name from another column

    Hi all,

    My first post here and first post ever about excel, forgive me for any forum rules I may be trampling out of ignorance.

    I'm working on something golf related. I want to put player names in column A and hole 1 scores in column B, hole 2 scores in column C, etc. Then I want to find the lowest score(s) for hole 1 in column B. There may be several players that tie scores on a hole. So what I am trying to figure out is how to place all of the players names who that tie low score into another cell. Ultimately what I am trying to do is figure out who tied hole 1 and then use hole 2's score as a tiebreaker for those players for hole 1. But my first challenge is this one, so I'll stick to this for now.

    I've figured out how to use MIN with the cell range, and to conditional format the lowest scores. I just don't know enough to know how to get the corresponding names from that.

    Thanks for any help you can provide.

    Mike

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Find minimum value(s) in column and gather corresponding name from another column

    It would be very helpful if you could post what you have, with some dummy data, and an example of what you want the resulting output to look like. That way we can design something specifically to your spreadsheet.

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

    Re: Find minimum value(s) in column and gather corresponding name from another column

    Are you sure you want all the ties to be in one cell?

    This will require a VBA function.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    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,939

    Re: Find minimum value(s) in column and gather corresponding name from another column

    Hi, welcome fo the forum

    MY answer, based on my understanding of your question...
    A
    B
    C
    1
    Player Hole 1 Hole 2
    2
    1
    2
    3
    3
    2
    3
    3
    4
    3
    4
    5
    5
    4
    5
    2
    6
    5
    2
    4
    7
    6
    2
    8
    8
    9
    10
    1
    3
    11
    5
    4
    12
    6
    8

    A1=IFERROR(INDEX($A$2:$A$7,SMALL(IF($B$2:$B$7=MIN($B$2:$B$7),ROW($A$2:$A$7)-1),ROWS($A$1:A1))),"")
    ARRAY formula
    ...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.

    B10=IF(A10="","",VLOOKUP(A10,$A$2:$C$7,3,0))
    regular formula
    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

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find minimum value(s) in column and gather corresponding name from another column

    I used 2 helper columns. The first helper has the scores for the second hole and the second helper column sums the first 2 holes. The resultant score was then ranked using rank.
    Enter in A20 and fill down and across to column C
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter in D20 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Conditional formatting formula:
    Select D20:D23
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    09-28-2015
    Location
    Midwest
    MS-Off Ver
    2010
    Posts
    3

    Re: Find minimum value(s) in column and gather corresponding name from another column

    Sorry for the delay getting back to this. quekbc, what FDibbins posted is essentially what I'm looking for. In response to Tony, the names don't need to be in the same cell, they can be displayed in separate cells in the same column. I'll play around with your examples FDibbins and newdoverman and let you know if those are going to work for me.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find minimum value(s) in column and gather corresponding name from another column

    Trying to break ties in a "fair" manner using the scores for 2 holes even if a small random number is added to the scores is like picking the winner out of a hat. There just isn't enough data. Even several holes might not be enough if the golfers are good.

    I used to play golf with some buddies and we had pre-chosen holes where we would have a "contest" and win the jackpot. A sure winner was low score for the hole. If tied, the closest to the hole (for those tied) broke the tie. Eg player A holed out from the fairway and player B sank a 2 foot putt but both had the same score for the hole. The winner would be player B as player B was closer to the hole.

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

    Re: Find minimum value(s) in column and gather corresponding name from another column

    Quote Originally Posted by Complex13 View Post
    In response to Tony, the names don't need to be in the same cell, they can be displayed in separate cells in the same column.
    OK, here's how I would do that.

    Data Range
    A
    B
    C
    D
    1
    Player
    Score
    ------
    Low Players
    2
    Bill
    5
    Jack
    3
    Tim
    5
    Sam
    4
    Jack
    4
    Phil
    5
    Bubba
    5
    6
    Sam
    4
    7
    Jordan
    7
    8
    Tom
    6
    9
    Phil
    4
    10
    Chris
    5


    This array formula** entered in D2:

    =IFERROR(INDEX(A:A,SMALL(IF(B$2:B$10=MIN(B$2:B$10),ROW(B$2:B$10)),ROWS(D$2:D2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

  9. #9
    Registered User
    Join Date
    09-28-2015
    Location
    Midwest
    MS-Off Ver
    2010
    Posts
    3

    Re: Find minimum value(s) in column and gather corresponding name from another column

    So what I am working on is a scoresheet for a billiard game called golf. The scoring is exactly like golf and it is a very similar game to 3 ball. While 3 ball uses the same rack set up every time, golf uses different ball configurations to get figure par scores.

    In 3 ball, if there is a tie, everyone puts in again and this repeats until someone gets a lower score than the rest of the field and they take the pot. A player can shoot terrible the first 5 racks, but as long as two other people tied for lowest score those racks, they have a shot at claiming the pot on rack six. So the good players usually prevail and you only get a couple of large pots per night. This is good for those few people, but it isn't a motivator for the lesser players to think they have a chance to win.

    For this golf billiard game, I revised the rules so that each individual rack (or hole) can only be won by those that tied for the lowest score. That way, if a lesser player gets lucky and shoots a low score they can still claim a pot without the good shooters getting mulligans for a tie. This keeps it a bit interesting, but in order to keep things moving along, we just use the next hole and so forth as the tiebreaker for the players that tie a hole.

    This scoresheet is to keep drunk people from trying to do math late at night. My excel skills are not great, so I'm learning as I go.

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

    Re: Find minimum value(s) in column and gather corresponding name from another column

    Those are my 2 favorite sports, golf and (8 ball) pool!

+ 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] Quickest way to gather unique values in column - preferably without looping
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-04-2015, 11:23 AM
  2. Replies: 3
    Last Post: 05-28-2014, 12:01 PM
  3. [SOLVED] Minimum value in column F depending on value in column B
    By Janbo27 in forum Excel General
    Replies: 7
    Last Post: 05-25-2014, 09:54 PM
  4. Replies: 4
    Last Post: 05-25-2014, 10:24 AM
  5. Replies: 1
    Last Post: 06-25-2013, 04:13 AM
  6. Loop Macro to Find Minimum Date for Column Data
    By abpexcelforum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2011, 05:03 PM
  7. [SOLVED] Minimum qualifiers to Find (VBA) the actual last used Row, Column
    By EagleOne in forum Excel General
    Replies: 3
    Last Post: 07-31-2006, 11:58 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