+ Reply to Thread
Results 1 to 11 of 11

Referencing cell values in separate tables that coincide with a person's name and sortable

  1. #1
    Registered User
    Join Date
    05-24-2021
    Location
    Allentown, PA
    MS-Off Ver
    Google Sheets, Office 365
    Posts
    10

    Referencing cell values in separate tables that coincide with a person's name and sortable

    I'm new and really don't know how to word my title or this question properly. I run a golf league and I have a spreadsheet that keeps track of each players points earned as well as their stroke average. I'd like those values to auto populate and be tied to their name in separate sortable lists (one for points and one for stroke average) that don't get mixed up when I sort by the number values. I've attached the spreadsheet here.
    Attached Files Attached Files

  2. #2
    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,926

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    1. you dont really say how you want them sorted...I sorted by stroke average
    2. I see a few repeat/duplicate scores, the simplest way to get around that is to use a helper column (that can be hidden) to create a tie break. I used a simple 1st-come-1st-served option, so eg, the 1st 1 44 score came 1st, the 2nd 22 came 2nd etc. If you want a different approach, let me know.
    3. Not really sure where you came up with the answers in AK, did you just enter random values?

    OK to my suggestion (see the attached file). I only worked out the top table for you, see if you can do the rest (if not, shout)...

    1. I added a helper in AD and used this (it creates the tie breaker)...
    AD7=IF(AB7<>"stroke avg.","",AC7+COUNTIF($AC$7:$AC7,AC7)/100)
    copied down

    2. I added a count in AE...1-18

    3. for the names...
    AI7=INDEX(B:B,MATCH(AJ7,AD:AD,0))
    copied down

    For the POINTS (all the rest is based on this)...
    AJ7=LARGE(IF($AB$7:$AB$60="stroke avg.",$AD$7:$AD$60),AE7)
    This is an ARRAY formula
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Then copy that down.

    Let me know if this is what you want, and whether you can duplicate this for the rest of your requirements?
    Attached Files Attached Files
    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

  3. #3
    Registered User
    Join Date
    05-24-2021
    Location
    Allentown, PA
    MS-Off Ver
    Google Sheets, Office 365
    Posts
    10

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Thanks for your help FDibbins! This is all way over my head but what you did works beautifully with the sorting! The horizontal rows are golf scores for 9 holes so it is very common to have duplicates, so we don't need a tie breaker there. Ties in the point standings are OK as we use our own manual system to break ties at the end of the season. I have attached a PDF of our spreadsheet from last season marked up in red. The upper right area is for the points standings (not stroke average as you currently have it) and the lower right area is for the stroke average (which I'd like to sort the same way as you did in the other area above).

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Why a PDF? Please provide an Excel workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    05-24-2021
    Location
    Allentown, PA
    MS-Off Ver
    Google Sheets, Office 365
    Posts
    10

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Provided PDF redlined to show what values go where on the sheet.

  6. #6
    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,926

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    TeeBone, just up the road from me (Altoona)

    I needed to add in a tie breaker, otherwise the 1st name with that score would be used for all occurrences of that score.

    I have done the 1st 2 sets for you (points and stroke avg). See if you can adapt that for the 2nd table?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-24-2021
    Location
    Allentown, PA
    MS-Off Ver
    Google Sheets, Office 365
    Posts
    10

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Correct, never been to Altoona but my 10yr old grandson is a HUGE Steelers fan so we're looking to get out to a game this season.

    The stroke average table looks great except I need that one sorted from low to high. I was able to change that by switching LARGE to SMALL in the formula...that was the easy one. Took me quite a while but I was able to do the 2nd half of each of the charts.

    Thanks soooo much for your help!!

  8. #8
    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,926

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Great stuff, Im happy it helped you

  9. #9
    Registered User
    Join Date
    05-24-2021
    Location
    Allentown, PA
    MS-Off Ver
    Google Sheets, Office 365
    Posts
    10

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Hey FDibbins...I have another problem I need a solution for, you up for a challenge?

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

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Sure, but please start a new thread for that.

  11. #11
    Registered User
    Join Date
    05-24-2021
    Location
    Allentown, PA
    MS-Off Ver
    Google Sheets, Office 365
    Posts
    10

    Re: Referencing cell values in separate tables that coincide with a person's name and sort

    Will do...

+ 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. Combining Separate Tables With Multiple Values
    By Killericon in forum Excel General
    Replies: 15
    Last Post: 12-14-2020, 12:33 PM
  2. [SOLVED] DIV/0 error when referencing data from web in separate cell
    By Jack_Vaughn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-29-2020, 01:43 PM
  3. Referencing multiple cells in order to reference separate tables
    By BIG IMP in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-15-2020, 02:31 AM
  4. [SOLVED] Cell formula referencing file path contained in separate cell not working
    By BrokenDome in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2019, 08:17 AM
  5. Looking for similar values and return separate tables / dates
    By zoomclub in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2017, 05:44 PM
  6. [SOLVED] Referencing data tables with increasing values.
    By Hrant in forum Excel General
    Replies: 10
    Last Post: 10-10-2015, 09:43 AM
  7. Referencing values in separate worksheet
    By xyba in forum Excel General
    Replies: 4
    Last Post: 10-21-2010, 01:59 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