+ Reply to Thread
Results 1 to 9 of 9

Sum of lap times in order to give race time at any lap

  1. #1
    Registered User
    Join Date
    04-13-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Sum of lap times in order to give race time at any lap

    Hi,

    Right I'm making a basic table in order to help determine how much fuel a car should carry and when to refuel mid-race, as well as how much fuel to refuel, in order to get the fastest time. Anyway, I have this function for laptime:

    =C4+(0.3*(C5-((C2-1)*C3)))
    Where C4 is 'Qualifying time', C5 is 'Starting fuel', C2 is 'Lap number' and C3 is 'Fuel consumption'. I also plan to make the 0.3 a changeable variable.

    I'm not fussed as to whether or not this is a realistic function that would work in a real race, it's only hypothetical. However I would like to have a function that would give me the over all race time at any given lap, not just the lap time for it. Anyone got any ideas what equation I could use in order to give me that without doing a whole new table of every lap's details?

    Cheers.
    Last edited by shockerty; 04-15-2009 at 08:19 AM. Reason: [SOLVED]

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Sum of lap times in order to give race time at any lap

    Isn't that =TOTAL TIME/LAP NUMBER * LAP?

    =C4/C2*Cx

    Edit: Sorry, I think you didn't ask for this... Hmmm, I didn't really get what you want :-S
    Last edited by zbor; 04-13-2009 at 01:58 PM.

  3. #3
    Registered User
    Join Date
    04-13-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sum of lap times in order to give race time at any lap

    Not quite what I was looking for, but thanks!

    C4 is qualifying time. i.e. lap time of the car in the qualifying round. The details though aren't important. Basically the equation I gave gives the laptime of any given lap. I want another cell to give me the total race time so far at the end of that lap.

    So for example the for the 17th lap, the equation I gave will tell me how fast the car should do lap 17 in. I want another cell telling me how much time has elapsed at the end of lap 17 since the start of the race.

    It's a bit complex I know. I might just make a table which works out the lap time for each lap and just =SUM the lap times to give me overall race time. Just hoped to do it in one cell instead of using a huge table.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Sum of lap times in order to give race time at any lap

    Try

    =SUMPRODUCT(C4+(0.3*(C5-((ROW(INDIRECT("1:"&C2))-1)*C3))))

  5. #5
    Registered User
    Join Date
    04-13-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sum of lap times in order to give race time at any lap

    :D Perfect! Thanks daddylonglegs!

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Sum of lap times in order to give race time at any lap

    Or =C2 * (C4 + 0.3 * (C5 - C3 * (C2 -1) / 2) )
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Sum of lap times in order to give race time at any lap

    Hey shg!

    Nice!

  8. #8
    Registered User
    Join Date
    04-13-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sum of lap times in order to give race time at any lap

    Cheers guys! You've been a great help. shg your soloution is alot easier for a novice like me to get my head around. Ha. Thanks for both your time though!

  9. #9
    Registered User
    Join Date
    08-08-2014
    Location
    Echuca
    MS-Off Ver
    2013
    Posts
    1

    Re: Sum of lap times in order to give race time at any lap

    Fuel Calculator.xlsxFuel Calculator.xlsxHey,

    Just come across this post, I use for online sim racing to work out pit stops, when is the earliest I can fuel up, and the latest. Doesn't include any lap times but could possibly help you out?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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