+ Reply to Thread
Results 1 to 8 of 8

Find and record ties

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    Wisconsin
    MS-Off Ver
    Office 2010
    Posts
    8

    Find and record ties

    Hello all,

    I keep track of a fantasy golf league and each week I create and import a file with golfer names and winnings. After importing and parsing the file, I insert the team winnings into a row cooresponding to the current week's tournament name down column A and under the cooresponding team name in row B1:AY1. In cell AZ2 and copied down I have the formula:

    =INDEX($B$1:$AY$1,MATCH(MAX($B2:$AY2),A2:AY2,0))

    which returns the team name with the highest earnings for the week. The problem is it only finds the first instance of the max value and ignores any ties which occasionaly happen. Is there a way to find all team names if there are ties and record them somewhere?

    Thanks for any and all help,
    Jim T

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Find and record ties

    I went with an array that just pulls each of up to a threeway tie. Could easily be altered for more.
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    11-25-2014
    Location
    Wisconsin
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Find and record ties

    Yikes! That's quite a formula. Let me chew on this for awhile and see if I can understand what you are doing and modify it to work with my needs.

    Thanks so much for the help,
    Jim T

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Find and record ties

    Here's a more attractive option; use one of the many ConcatenationIF User Defined Functions found around the web.

    The one below uses the following parameters:
    =ConcatIf(criteria range, criteria, return range, delimiter in quotes)

    So for a given list of scores in B1:B5, and respective names in A1:A5, you would use:
    =ConcatIf(B1:B5,MAX(B1:B5),A1:A5, ", ")

    Note: I went with comma-space as the delimiter to make it pretty.
    The usage is simpler, even if the code is tougher. But you don't need to know code to use it. I sure as heck don't know what half of it means.

    To use the code below, in Excel hit Alt+F11, Insert Module, paste the code below, and close that window.

    Call the new custom function with =ConcatIf(

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-15-2011
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    39

    Re: Find and record ties

    This is how you could do it in Power Pivot, super easy, no code to maintain, etc etc.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-25-2014
    Location
    Wisconsin
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Find and record ties

    dingdongsilver - Thank you for your quick reply. Your solution would be perfect if I was going to publish the results. It looks very nice. However, I use the results internally for future reference and only I see them.

    Jim T
    Last edited by jgtibbetts; 11-29-2014 at 12:30 AM.

  7. #7
    Registered User
    Join Date
    11-25-2014
    Location
    Wisconsin
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Find and record ties

    Thank you, thank you, thank you. That is brilliant. It works perfectly. I can sleep tonight.
    Jim T

  8. #8
    Registered User
    Join Date
    11-25-2014
    Location
    Wisconsin
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Find and record ties

    Daffodil11 - Thank you, thank you, thank you. That is brilliant. It works perfectly. I can sleep tonight.
    Jim T

+ 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. Replies: 1
    Last Post: 11-16-2012, 09:25 AM
  2. Command Buttons for Viewing Record, Next Record and Previous Record
    By david1987 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2012, 06:30 AM
  3. Find ties in game.
    By JoeBed in forum Excel General
    Replies: 1
    Last Post: 12-29-2010, 02:43 PM
  4. Find Minimum, excluding ties
    By Georgia Golfer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2009, 12:41 PM
  5. Find Record
    By Janis in Minnesota in forum Excel General
    Replies: 0
    Last Post: 09-02-2005, 12:05 PM

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