Solved

Excel converting time from text to time

Posted on 2015-01-07
3
196 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 33

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

685 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