Solved

Excel converting time from text to time

Posted on 2015-01-07
3
188 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
ID: 40537131
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
ID: 40537161
Try

=AVERAGE(--A1:A10)

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

and convert the cell into time format.

Kris
0
 
LVL 32

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 40537656
Or just convert using the TIMEVALUE function:

=TIMEVALUE(A1)

Result will be a decimal, then format as Time.

Thanks
Rob H
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 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