Convert Difference in time to seconds

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
774
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I am using PowerPivot to pull data from a text report to show some figures but I have come across an issue calculating time difference as the milliseconds are counted if the format of [Call Length] is set as time.
What is the best way for the calculation to work to count the difference in seconds as a number than time as I will need to calculate the difference.

Code:
Call Start Date
=if(Test[field2] =blank (),CONCATENATE(DATE(mid(Test[Field1],6,4),mid(Test[Field1],10,2),mid(Test[Field1],12,2))&" ",FORMAT(time(mid(Test[field1],14,2),mid(Test[field1],16,2),mid(Test[field1],18,2)),"HH:MM:SS")),
CONCATENATE(DATE(mid(Test[Field1],57,4),mid(Test[Field1],61,2),mid(Test[Field1],63,2))& " ",FORMAT(time(mid(Test[field1],65,2),mid(Test[field1],67,2),mid(Test[field1],69,2)),"HH:MM:SS")))
Call End Time
=Test[Call End Time] Test[CallStart Date]

1610549886144.png


Thanks in advance

 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Each Day is 86400 Seconds then you should Multiply time * 86400 to Convert to Seconds.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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