+ Reply to Thread
Results 1 to 10 of 10

sorting race results into overall positions... any advice?

  1. #1
    Registered User
    Join Date
    05-12-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    14

    sorting race results into overall positions... any advice?

    I've spent hours googling this, with no luck. I am sure it must be a fairly common scenario, too...

    I need an efficient way to sort out race results. Racers, wearing bib numbers 01 - 99, compete in a number of races. We record them coming over the finish line. And we do a number of races. So we end up with a table that looks like

    POS Race 1 Race 2 Race 3 Race 4
    1st 16 24 24 05
    2nd 24 05 27 14
    3rd 05 16 33 27
    4th 14 27 16 1
    5th 27 33 05 42
    6th 33 14 22 24
    7th 1 8 19 16
    etc

    etc etc. (And just to reiterate, the numbers in the table are the bib numbers. The finishers come over the line far too fast to be able to do anything other than just write down the numbers.)

    So what we want to be able to do ideally is to extract the data from that table with some elegant formula rather than by pencil and paper, or some brute force humungous nested IF statement, to end up with the data thus:

    Racer Race 1 Race 2 Race 3 Race 4 TOTAL OVERALL
    01 7 9 9 4 29 5
    02 10 8 etc etc etc etc
    03 14 10 etc etc etc etc
    04 27 11 etc etc etc etc
    05 3 2 5 1 11 2
    06 13 18 etc etc etc etc
    07 15 22 etc etc etc etc

    ie lifting out the finishing position for each racer, from each race, totalling them, and then finally (pushing my luck here perhaps!), creating an overall position for each racer based on their combined total performance. (I appreciate that I could just do a sort at this stage, once I have the totals. But obviously it would be nice to have the spreadsheet do ALL the work, if possible!)

    As said, I'm sure this requirement must occur on a regular basis in sporting events so I'm sure the solution is out there, apologies if it's already well discussed/documented elsewhere!

    many thanks

    BillyD

  2. #2
    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: sorting race results into overall positions... any advice?

    Welcome to the forum!

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: sorting race results into overall positions... any advice?

    Hi Billy, welcome to the forum! I suspect a pivot table might be the way to go, but if you prefer formulas, here's one approach.
    Column A is a list of unique racers. Succeeding columns, which may be in any order (formulas lookup the race name), contain results.
    To simplify maintenance, the Race Data area is referenced using Named Ranges. Use the Name Manager on the Formulas tab for changes.

    Row\Col
    A
    B
    C
    D
    E
    F
    13
    Racer
    Race 1
    Race 2
    Race 3
    Race 4
    Count
    14
    1
    7
    4
    2
    15
    5
    3
    2
    5
    1
    4
    16
    8
    7
    1
    17
    14
    4
    6
    2
    3
    18
    16
    1
    3
    4
    7
    4


    This array formula* in A14, copied down:
    Please Login or Register  to view this content.
    ...and this standard formula in B14, copied across and down:
    Please Login or Register  to view this content.
    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.
    Attached Files Attached Files
    Last edited by leelnich; 02-19-2018 at 04:08 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  4. #4
    Registered User
    Join Date
    05-12-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: sorting race results into overall positions... any advice?

    Hi Leelnich, thank you SO much!! That's amazing. Exactly what we needed, and indeed more, with that extra neat addition of actually interrogating the table to see which numbers are there, rather than just listing every possible number. I had no idea that excel could be pushed so hard.

    So, if I may, could I just pick your brains on the one final stage which really would be the icing on the cake for making our scoring system as efficient as possible (and as you can imagine, when you're dealing with dozens of mud soaked and hyper kids, in the rain and wind, stuff going on everywhere, every little thing that makes life easier for the poor sod who's got the job of getting the results sorted is just a huge bonus...!)

    It's just a case of sorting the final results table into overall finishing order. I have attached a proper table of real results, with your sorting table included, so it's showing the combined total scores of each athlete. all we need now is to show their overall finishing position. I know we could simply re-sort the table by overall scores and write the results out from that, but it would be brilliant if that final stage could be automated too...

    And AliGW, many thanks for all the advice and welcome, which I will endeavour to follow from here on.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-16-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: sorting race results into overall positions... any advice?

    Do you mean like this?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-12-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: sorting race results into overall positions... any advice?

    Um, no, sorry maybe I explained it wrong. In that v2 file I had uploaded, there is the final blank column titled POSITION. That is the column I want to 'solve' with a formula - the overall finishing position for that athlete based on the points total shown in the previous column. The extra column I had added entitled 'correct positions' was purely there to show the results that we are trying to get to, worked out by hand rather than excel magic.

  7. #7
    Registered User
    Join Date
    05-12-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: sorting race results into overall positions... any advice?

    OK, all sorted, just discovered the RANK function. Duh. Too easy.

    But I don't think I would easily have discovered the MATCH/INDEX math for the other tasks, so thanks again everyone. Super helpful and much appreciated!!!

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: sorting race results into overall positions... any advice?

    Yep! If you want to pretty it up, display blanks where appropriate. In H14, copied down:
    Please Login or Register  to view this content.
    Thanks for the rep... and if concluded, please mark your thread as SOLVED (Thread Tools above post #1). Regards - Lee

  9. #9
    Registered User
    Join Date
    01-05-2016
    Location
    Ottawa, Canada
    MS-Off Ver
    MS Office 97
    Posts
    6

    Re: sorting race results into overall positions... any advice?

    @billyd333 I have been keenly interested in this thread.
    Please post your final version including the "rank" function.

  10. #10
    Registered User
    Join Date
    05-12-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: sorting race results into overall positions... any advice?

    Very good!

    Here you go Vibert_c - hope it's as of much use to you as it has been to me!
    Attached Files Attached Files

+ 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. Attempting to log Race Lap Positions live
    By Rroger_D in forum Excel General
    Replies: 7
    Last Post: 05-17-2016, 06:05 PM
  2. Replies: 1
    Last Post: 12-18-2014, 09:43 PM
  3. Calculating positions in a race
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2013, 06:30 AM
  4. [SOLVED] Race results
    By akalien in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2012, 10:18 AM
  5. sorting or categorizing "race results" table
    By koivula in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2010, 03:47 PM
  6. formula to allocate points to positions in a race
    By SEVKN in forum Excel General
    Replies: 2
    Last Post: 10-14-2008, 02:52 AM
  7. Race results
    By pobuckley in forum Excel General
    Replies: 2
    Last Post: 08-07-2007, 12:24 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