How to compare seconds in excel

CunningStunts

New Member
Joined
Dec 2, 2019
Messages
10
Office Version
  1. 2010
Platform
  1. Windows
Hi guys,

I'm comparing horse racing times for my trading and when I'm comparing seconds there's one problem tripping me up. I'll give an example so its clear. The first times is the overall win time and the second time's are the horses actual times. These will be displayed as seconds and milliseconds

Horse #1 12.30 12.47
Horse #2 13.40 14.02
Horse #3 13.50 14.10

Here's my main issue, when I enter the times into excel the first horse won't be an issue because the time doesn't cross over the minute barrier but unless I calculate them manually which take ages, I'll have the second horses time showing as a 62 second time difference when in reality its actually only 22 seconds. Same with the third horse, it would show 60 seconds instead of 20 seconds. How can I fix this please? What's the formula?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
It's just a matter of converting your times (which are a mash-up of decimal and min:sec).

For example, 12.3 (I assume) is 12:30 (mm:ss). To convert this to a true decimal (12.5), use this formula:
VBA Code:
=INT(B1)+(((B1-INT(B1))*100)/60)
This turns the decimal portion into a percentage and multiply by 60. Do this for each split.
Calculate the difference by simple subtraction.
Multiply the final result by 60 to get the final answer as seconds.
 
Upvote 0
Another option
Fluff.xlsm
ABC
1
212.312.470.17
313.414.020.22
413.514.10.2
Data
Cell Formulas
RangeFormula
C2:C4C2=DOLLARFR(DOLLARDE(B2,60)-DOLLARDE(A2,60),60)
 
Upvote 0
Amazing! Thank you both for your answers, couldn't for the life of figure it out
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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