Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel -- Time Functions 3

Status
Not open for further replies.

risk99

Technical User
Mar 23, 2003
44
US
Hi, I've downloaded some data from the Web, and it has a column for time, but it's in TEXT format, so the time reads like this : 102530 (the hour is 10, minute is 25, second is 30). When I tried to change the cell format to "Time" , everything goes to " 00:00:00 ". I've tried the following functions from Excel, but it didn't work:

TIME, HOUR, MINUTE, SECOND

Please help!!!
 
Skip, anyone.

Will what you discussed here help me format a cell so that I can type: 102530 and have the cell display as 10:25:30. I would also need to make sure is can deal with time durations, not time clock. For example, 1235010 to represent 123:50:10 or 123 hrs, 50 mins, 10 secs.
 
use this formula AND format the cell [h]:mm:ss
Code:
=((INT(G2/10000))+((LEFT(RIGHT(G2,4),2))+((RIGHT(G2,2)))/60)/60)/24
where G2 is your time digit string such as 1235010 returning
Code:
123:50:10
:)

Skip,
Skip@TheOfficeExperts.com
 
Thanks. Skip.

Sorry it took so long to get back to you. Too much work activity to implement change. Now it's 2004 and I'm streamlining.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top