Solved

Excel converting time from text to time

Posted on 2015-01-07
3
180 Views
Last Modified: 2015-01-08
Hello,

I have a column of information showing 00:03:29 for example but in text so I can get an average of all the times in the column.  I tried data format convert to time and even text to columns, but it does not work.  

Thanks,
John
0
Comment
Question by:jverasql
3 Comments
 
LVL 12

Expert Comment

by:Alan3285
Comment Utility
Hi,

I am guessing that means 0 hrs, 3 mins, and 29 secs?

If so, and you have that string ("00:03:29") in cell A1, then this should convert it to a timevalue:

=TIME(LEFT(A1,2),MID(A1,4,2),RIGHT(A1,2))

The actual 'value' will be 0.00241898148148148 which is the portion of a day that is represented by that amount of time.

To format the result cell to show 00:03:29 (but keep the value as a timevalue), use this format:

hh:mm:ss


HTH,

Alan.
0
 
LVL 18

Expert Comment

by:krishnakrkc
Comment Utility
Try

=AVERAGE(--A1:A10)

Its an array formula. Confirmed with CTRL+SHIFT+ENTER

and convert the cell into time format.

Kris
0
 
LVL 31

Accepted Solution

by:
Rob Henson earned 500 total points
Comment Utility
Or just convert using the TIMEVALUE function:

=TIMEVALUE(A1)

Result will be a decimal, then format as Time.

Thanks
Rob H
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now