Hi,
Hope you guys can help.
I have the following data:
18 min 56 s 15 min 52 s 14 min 50 s
Is there a way to convert it to:
?
00:18:56 00:15:52 00:14:50
Thanks!
David
Hi,
Hope you guys can help.
I have the following data:
18 min 56 s 15 min 52 s 14 min 50 s
Is there a way to convert it to:
?
00:18:56 00:15:52 00:14:50
Thanks!
David
Assuming your value is stored in cell I9, try
="00:"&LEFT(I9,2)&":"&MID(I9,8,2)
Thanks so much, that worked!
Unfortunately, I just realized I have some cells with time formats that don't fit to this formula.
For example:
8 s 13 s 1 min 22 s
Converts to:
00:8 : 00:13: 00:1 :2
Is there a way to fit these to the "hh:mm:ss" format too?
Thanks so much again!
David
How about hours?
Do you mean if I have cells that contain more than 59 minutes?
If so, no.
Here are some examples of the data I have:
18 min 56 s
19 min 3 s
14 s
1 min 22 s
1 min 0 s
Thanks,
David
Please help?
Maybe
="00:"&IF(COUNTIF(B4,"*m*"),TEXT(TRIM(LEFT(B4,2)),"00"),"00")&":"&TEXT(TRIM(SUBSTITUTE(RIGHT(B4,4)," s","")),"00")
EDIT: slightly shorter version
="00:"&IF(LEN(B4)>4,TEXT(TRIM(LEFT(B4,2)),"00"),"00")&":"&TEXT(TRIM(SUBSTITUTE(RIGHT(B4,4)," s","")),"00")
EDIT: even shorter version
=TIME(0,IF(LEN(B4)>4,TRIM(LEFT(B4,2)),0),TRIM(LEFT(RIGHT(B4,4),2)))
format cell as hh:mm:ss
Last edited by Cutter; 04-23-2012 at 06:47 AM. Reason: Added third version
-- Deleted --
Last edited by shg; 04-22-2012 at 07:23 PM.
Entia non sunt multiplicanda sine necessitate
@shg
That's not working - check the 3rd entry in the examples you give - "14 s" yields 0:14:00 but should be 00:00:14
Thanks, Cutter -- when I fixed it it was more complicated than yours.
Hey - does that mean I get a 'star tap' from a master????????
Indeed, and done.
Hey, thanks for that. I was kidding, but no take-backs! I'm off to the framing shop.
But I came up with a shorter version:
=TIME(0,IF(LEN(B4)>4,TRIM(LEFT(B4,2)),0),TRIM(LEFT(RIGHT(B4,4),2)))
format cell as hh:mm:ss
EDIT: and even shorter
=TIME(0,TRIM(LEFT(B4,2))*(LEN(B4)>4),TRIM(LEFT(RIGHT(B4,4),2)))
Last edited by Cutter; 04-23-2012 at 07:00 AM. Reason: Added shorter version
Thanks so much Cutter, that worked beautifully!
Which one????
You're welcome.
I only tried the very short one
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks