+ Reply to Thread
Results 1 to 4 of 4

Comparing values to determine point which one value is greater and ends further comparison

  1. #1
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Tacoma, Washingtonn
    MS-Off Ver
    Excel 2019
    Posts
    254

    Comparing values to determine point which one value is greater and ends further comparison

    Greetings all,

    Thank you in advance if anyone could help me solve a formula problem. Golf knowledge is a plus! I am trying to automatically score match-play competition. I have attached a worksheet with 5 sets of players competing in pairs of 2. The hole columns (B-S) reflects the result of each individual hole played against each other, with a positive number indicating a win and a negative number indicating a loss. The other part of the hole results represents how many holes are left to play. When a player reaches a positive number which is larger than the number of holes left to play, the match is over. I am trying to find a formula to find that point in each matchup and record it under desired results. The losing player would remain blank.

    That's the easiest way I can think of to describe my project. Helping me solve this would save an enormous amount of time manually looking for that figure among as many as 140 players. I have had so much luck on this site, thanks for taking a look.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Comparing values to determine point which one value is greater and ends further compar

    Try

    in T3

    =IFERROR(INDEX($B3:$S3,MATCH(1,IF(TRIM(LEFT($B3:$S3,FIND("&",$B3:$S3)-2))+0>18-$B$2:$S$2,$B3:$S3,0))+1),"")

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

    Then copy down

    OR


    with SCORES ONLY in the cells:

    in T2

    =IFERROR(INDEX($B2:$S2,MATCH(1,IF($B2:$S2>18-$B$1:$S$1,$B2:$S2,0))+1) &" & "&18-(MATCH(1,IF($B2:$S2>18-$B$1:$S$1,$B2:$S2,0))+1),"")

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


    THEN copy down

    See Sheet2
    Attached Files Attached Files
    Last edited by JohnTopley; 03-25-2018 at 03:45 PM.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Comparing values to determine point which one value is greater and ends further compar

    Does the attached help.

    When analysing numerical data it simplifies things immensely if you create a regular normailised database that contains the underlying numbers. Your current table is essentially strings of text. You can derive string slicing formulae to convert them to numbers but it just makes life so much more difficult.

    I've added a new sheet called Data. Here in columns B:E you'd add the round data. Columns F&G are formulae.

    The summary table is in columns I:M.

    I've only entered two matches but you'll see the general idea
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Tacoma, Washingtonn
    MS-Off Ver
    Excel 2019
    Posts
    254

    Re: Comparing values to determine point which one value is greater and ends further compar

    John, Thank you! Thank you! Thank you! Your formula works perfectly! Your name looks familiar and I believe you have helped me in the past. I am learning so much from this forum and people like you. This saves me a tremendous amount of time. Thanks again!

+ 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] Comparing double values returns false - floating-point expressions
    By ericds in forum Excel General
    Replies: 7
    Last Post: 12-15-2014, 03:19 PM
  2. [SOLVED] Greater than doesn't work when comparing values from two textboxes
    By torppo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2014, 06:04 AM
  3. Scroll bar with a mid point of 0 and positive increasing values on both ends
    By jasonleewkd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2014, 06:21 AM
  4. Comparing multiple sets of columns for greater values
    By metsfan666 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-09-2012, 08:41 PM
  5. Replies: 6
    Last Post: 02-22-2012, 11:26 AM
  6. Comparing columns for values greater than each other
    By macaonghus in forum Excel General
    Replies: 5
    Last Post: 04-27-2009, 07:28 AM
  7. greater than comparison not doing anything
    By sulavsingh6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2009, 02:56 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