ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Time / Formula to look at time difference (https://www.excelbanter.com/excel-worksheet-functions/5930-time-formula-look-time-difference.html)

carl

Time / Formula to look at time difference
 
My time data looks like this:


COLA COLB
93357
93404

Is there a formula that i can use in B2 that will tell me the difference
between the 2 times (00:00:7 hours:min:seconds) ?

Thank you in advance.

Bob Phillips

I hope you mean 00:00:47!

=TIME(0,0,A2-A1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"carl" wrote in message
...
My time data looks like this:


COLA COLB
93357
93404

Is there a formula that i can use in B2 that will tell me the difference
between the 2 times (00:00:7 hours:min:seconds) ?

Thank you in advance.




Niek Otten

=TIME(INT(A2/10000),INT(MOD(A2,10000)/100),MOD(A2,100))-TIME(INT(A1/10000),INT(MOD(A1,10000)/100),MOD(A1,100))

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"carl" wrote in message
...
My time data looks like this:


COLA COLB
93357
93404

Is there a formula that i can use in B2 that will tell me the difference
between the 2 times (00:00:7 hours:min:seconds) ?

Thank you in advance.




carl

no. i meant 7 seconds.

"Bob Phillips" wrote:

I hope you mean 00:00:47!

=TIME(0,0,A2-A1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"carl" wrote in message
...
My time data looks like this:


COLA COLB
93357
93404

Is there a formula that i can use in B2 that will tell me the difference
between the 2 times (00:00:7 hours:min:seconds) ?

Thank you in advance.





Frank Kabel

Hi Carl
but then please explain HOW you come to this result looking at your
example data???

--
Regards
Frank Kabel
Frankfurt, Germany


carl wrote:
no. i meant 7 seconds.

"Bob Phillips" wrote:

I hope you mean 00:00:47!

=TIME(0,0,A2-A1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"carl" wrote in message
...
My time data looks like this:


COLA COLB
93357
93404

Is there a formula that i can use in B2 that will tell me the
difference between the 2 times (00:00:7 hours:min:seconds) ?

Thank you in advance.



Frank Kabel

Hi
sorry, forget my post. Use Niek's answer

--
Regards
Frank Kabel
Frankfurt, Germany


carl wrote:
no. i meant 7 seconds.

"Bob Phillips" wrote:

I hope you mean 00:00:47!

=TIME(0,0,A2-A1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"carl" wrote in message
...
My time data looks like this:


COLA COLB
93357
93404

Is there a formula that i can use in B2 that will tell me the
difference between the 2 times (00:00:7 hours:min:seconds) ?

Thank you in advance.



All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com