Write out time format from cell with numbers

Weeble

Board Regular
Joined
Nov 30, 2016
Messages
95
Office Version
  1. 365
Hi MrExcel forum! ( first post )

at work I can withdraw a "timestamp" from a QRY. The time is shown like this. [71131], so basicly it's 07:11:31 HH:MM:SS.

In short I am trackin a time activity of a person and I need to know how many mintues pass each task.

Tasks might look like this.
71131
71219
71327
93512
121015

How can I calculate the time difference between them in a good way?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,801
The following formula will give you the difference in Excel time:

=TEXT(A2,"00\:00\:00")-TEXT(A1,"00\:00\:00")

Then you can format it as h:mm:ss, or multiply by 86400 to get seconds, or multiply by 1440 to get minutes, etc.
 
Upvote 0

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,426
Office Version
  1. 2019
You need to format them all as time
This will do it, but there may be a better way

=SUBSTITUTE(TEXT(RIGHT("0"&A1,6),"00-00-00"),"-",":")+0

and copy down the column
format as time
 
Upvote 0

Forum statistics

Threads
1,191,179
Messages
5,985,149
Members
439,943
Latest member
bowlgud2

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
Top