Calculate time between occurrences

bmv505

New Member
Joined
Sep 28, 2022
Messages
24
Office Version
  1. 365
I have a spreadsheet with years of team scoring plays (Team "L" and its Opponent "O")

The scoring plays have a time, which I calculate on a one hour range (60 minute football game, so if theres 11:55 left in the 1st quarter, the "game time" is 56:55, which I use time formula "time(0,56,55)" to represent)

I am trying to find a formula that calculates the time between a team's scores. So in screenshot below,

Coulmn A is year
Column B is the game number of that year
Column D is the quarter
Column F is the minute of the quarter
Column G is the second of the quarter
Column H shows what team scores ("L" or "O", with "Game" being the start and end of a game)
Column T is the game time (which I believe will make it a lot cleaner to calculate)

Thank you!

1718967786634.png
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Book1
ABDFGHTAAACAD
1YearGameQMSL/O/GGame TimeTime between L scoresTime between O scores
2202311150Game1:00:00  
32023111155L0:56:551st score 
4202311449O0:49:49 1st score
52023121139L0:41:390:15:16 
620231299L0:39:090:02:30 
7202312217O0:32:17 0:17:32
8202313928L0:24:280:14:41 
92023141455L0:14:550:09:33 
10202314459L0:04:590:09:56 
1120231421O0:02:01 0:30:16
1220231400Game0:00:00  
13202321150Game1:00:00  
142023211059L0:55:591st score 
152023211026O0:55:26 1st score
16202321332L0:48:320:07:27 
17202322120O0:42:00 0:13:26
18
Sheet5
Cell Formulas
RangeFormula
T2:T17T2=(60-(D2-1)*15 - (15-F2) + G2/60)/(1440)
AA2:AA17AA2=IF(H2="L", IFERROR(TAKE(FILTER(T$1:T1, (A$1:A1=A2)*(B$1:B1=B2)*(H$1:H1="L")),-1) - T2,"1st score"), "")
AC2:AC17AC2=IF(H2="O", IFERROR(TAKE(FILTER(T$1:T1, (A$1:A1=A2)*(B$1:B1=B2)*(H$1:H1="O")),-1) - T2,"1st score"), "")
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top