+ Reply to Thread
Results 1 to 12 of 12

Need help with INDEX/MATCH formula

  1. #1
    Registered User
    Join Date
    02-05-2016
    Location
    Ohio
    MS-Off Ver
    2013
    Posts
    16

    Need help with INDEX/MATCH formula

    I'm working on a golf outing scoresheet to make it faster after the scramble. I've gotten a lot done (with help from this forum) but I'm running into another issue. In cells C26:U26, I want to show the Team Name (column A) that has the score matching the result of C30:U30. The issue I'm having is that the Skins checkbox (column B) also has to be checked. This checkbox returns a TRUE/FALSE in column Z. If more than one team wins the skin (lowest score & checkbox checked), I want it to return NO SKINS.

    After this calculation is complete, I would like a function to count how many times each of these names from column A are returned, and populate the winner of the skins in X15:X25. The winner will have to have won the most amount of skins (highest number of returns in C26:U26). I'd like it to exclude the "NO SKINS" return from the count also. If there is a tie (more than one of the highest number), multiple people will win the skins and I'd like all of their team names to be populated in X15:X25.

    Thanks for all of your help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,737

    Re: Need help with INDEX/MATCH formula

    The following is a formula that, pasted into C26 and dragged across, will give you the results you want in row 26:
    Please Login or Register  to view this content.
    Here is the formula applied to the previous version of the attachment:
    Copy of Golf Outing Scoresheet - fixed.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    02-05-2016
    Location
    Ohio
    MS-Off Ver
    2013
    Posts
    16

    Re: Need help with INDEX/MATCH formula

    That didn't quite do what I wanted. I reattached the file. So for example, even though row 3 shows the lowest value (1), the checkbox isn't checked. The result for C26 should be "B" since it is the lowest value of row C that has the box checked.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,737

    Re: Need help with INDEX/MATCH formula

    Since the True/False values from the original file had been moved from column V to column Z the formula needed to be adjusted accordingly. See if it is doing what you want now:
    Please Login or Register  to view this content.
    Here is a copy of the file in post #3 with the adjusted formula applied:
    Copy of Golf Outing Scoresheet - fixed.xlsx
    Let me know if you have any questions.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,737

    Re: Need help with INDEX/MATCH formula

    Deleted by JeteMc
    Last edited by JeteMc; 02-08-2016 at 04:02 PM. Reason: Double Post

  6. #6
    Registered User
    Join Date
    02-05-2016
    Location
    Ohio
    MS-Off Ver
    2013
    Posts
    16

    Re: Need help with INDEX/MATCH formula

    That did it, thanks! I may be uploading these files incorrectly so I apologize.

    One last favor. I want to calculate the skins game winner and post that in X15:X25. There may be more than one winner if they have an equal amount of skin holes won. So the formula would have to count how many times the winning name is calculated in row 26, and then post the name(s) over in X.

    Thanks again!
    Attached Files Attached Files

  7. #7
    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,515

    Re: Need help with INDEX/MATCH formula

    Try this:

    Column AC has COUNT of Team winners

    =COUNTIF($C$26:$U$26,A3)

    Column AD ranks them allowing for duplicates

    =IF($AC3<>0,(COUNTIFS($AC$3:AC3,AC3)-1)*0.001+$AC3,"")

    In X15

    =IFERROR(INDEX($A$3:$A$26,MATCH(LARGE($AD$3:$AD$24,ROWS($1:1)),$AD$3:$AD$24,0)),"")

    Drag down
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-05-2016
    Location
    Ohio
    MS-Off Ver
    2013
    Posts
    16

    Re: Need help with INDEX/MATCH formula

    John,

    I loaded up a bunch of scores. As you can see, it returned Teams A, E, & C as the skins winners. But if you look at row 26, Team C has the most skins, and should be the only winner posted in Y15 (I moved it from X in the previous upload). What can be done to fix this?

    Thanks!
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,737

    Re: Need help with INDEX/MATCH formula

    Looking at the file columns AC and AD were out of alignment to the scorecard. Putting AC back into alignment has put Team C back at the top. I have put a slightly different (array) formula in Y15:Y26 that only puts the team(s) that have won the most skins on the list. The array formula* is:
    Please Login or Register  to view this content.
    Here is a copy of your file with the realignment and formula applied:
    Copy of Golf Outing Scoresheet - fixed.xlsx
    Array formulas are activated with the keystrokes Ctrl+Shift+Enter, not just Enter.
    Let me know if you have any questions.

  10. #10
    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,515

    Re: Need help with INDEX/MATCH formula

    Sorry about the alignment problem: shouldn't work late at night! Thanks to JeteMc for the correction. Looks OK now.

  11. #11
    Registered User
    Join Date
    02-05-2016
    Location
    Ohio
    MS-Off Ver
    2013
    Posts
    16

    Re: Need help with INDEX/MATCH formula

    You guys are awesome! Thank you very much for your help!!

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,737

    Re: Need help with INDEX/MATCH formula

    You're Welcome and thank you for the feedback. If you haven't already, please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a nice day.

+ 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] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  2. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  3. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  4. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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