+ Reply to Thread
Results 1 to 6 of 6

Race Position Tracker - Calc Ahead and Behind Relative to Own Position

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    Orlando
    MS-Off Ver
    2013
    Posts
    3

    Race Position Tracker - Calc Ahead and Behind Relative to Own Position

    Hello
    I'm developing a spreadsheet to track race positions and in particular the time (seconds) or laps (L) relative to my position. The data input would be the Car number and the Gap.
    The other two values are calculated and represent; Diff to the leader (Car 99) and AB the gap to my car (Car 44).

    The table below (see attached) represents input after a number of laps (not important) where Car 99 is leading and my car 44 is in position 7. The Car and Gap data are manually input and Diff and AB are calculated.

    How do I calculate Diff and AB? The calculation would need to account for lapped cars (indicated by 1L etc under Gap) in calculating Diff and AB. Obviously the position of any car may move up or down so being in Position 7 is not fixed, again the calculation will need to account for this.

    Thanks for reading.

    Position Car Gap Diff AB
    1 99
    2 14 10 10 43
    3 22 4 14 33
    4 01 12 26 29
    5 66 5 31 17
    6 11 12 43 12
    7 44 20 63
    8 77 2 65 2
    9 653 3 68 5
    10 666 8 76 13
    11 172 24 100 37
    12 171 1L 1L 1L
    13 12 2L 3L 3L
    14 67 3L 6L 4L
    Attached Files Attached Files
    Last edited by JLI127; 09-08-2021 at 06:55 PM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,058

    Re: Race Position Tracker - Calc Ahead and Behind Relative to Own Position

    D3=SUM(C$3:C3), E3=IF(B3=44,"",INDEX($D$2:$D$15,MATCH(44,$B$2:$B$15,0))-D3), copy down.

  3. #3
    Registered User
    Join Date
    11-24-2014
    Location
    Orlando
    MS-Off Ver
    2013
    Posts
    3

    Re: Race Position Tracker - Calc Ahead and Behind Relative to Own Position

    josephteh
    Thank you! You inspired me to complete the D3 (now D4, I added a row) calc; I also added extra to handle the '1L' type values under Gap (column C)

    As for your E3 (now E4) solution I tried this but run in to the issue with the '1L' type values in column D.

    Any way to modify the E column formula to take account of the '1L' values in column D?

    I added values in column F to show what the column E should calc out to.

    Lastly, I've attached the updated spreadsheet.

    Again, thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,058

    Re: Race Position Tracker - Calc Ahead and Behind Relative to Own Position

    Added 2 Helper columns (you may choose to hide the 2 columns) to come up with the results you expected.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-24-2014
    Location
    Orlando
    MS-Off Ver
    2013
    Posts
    3

    Re: Race Position Tracker - Calc Ahead and Behind Relative to Own Position

    Thank you again!

    See attached for final result.

    I actually ended up using your helper1 idea to populate the Diff column, this now handles scenarios where the leader is a lap (1L) up on everyone. It didn't beofre and caused #VALUE# errors,

    So again, many thanks I learned a lot.

    Are you ready for Part 2, charting ?!?
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,058

    Re: Race Position Tracker - Calc Ahead and Behind Relative to Own Position

    You are welcome. You may want to open a new thread for the charting.

+ 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. Sort Race Finishing Position by Group
    By HNickM in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2016, 12:55 PM
  2. [SOLVED] Finding the relative position of the last X
    By Howlin in forum Excel General
    Replies: 3
    Last Post: 09-02-2015, 09:11 AM
  3. Sum according to relative position of another table
    By plakatown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-16-2014, 10:31 PM
  4. [SOLVED] Would like to tally points based on position finished in race
    By draconis123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-22-2014, 07:34 PM
  5. Excel 2007 : Global number tracker based on position.
    By theelous3 in forum Excel General
    Replies: 10
    Last Post: 03-23-2012, 06:03 PM
  6. Lookup a value, and SUM relative to that value position
    By gtichauer in forum Excel General
    Replies: 2
    Last Post: 01-17-2012, 04:44 PM
  7. Formulas for race game (position calculation after each round)
    By 0-0 Wai Wai ^-^ in forum Excel General
    Replies: 0
    Last Post: 07-26-2005, 06:05 AM

Tags for this Thread

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