Hi,
Hope you guys can help me.
I have the following data:
222 h18 m 56 s
115h 3m 1s
Is there a way to convert it to:
222:18:56
115:03:01
Thanks
Sohel
Hi,
Hope you guys can help me.
I have the following data:
222 h18 m 56 s
115h 3m 1s
Is there a way to convert it to:
222:18:56
115:03:01
Thanks
Sohel
Hi Sohel
You can use the replace function. If the cells always have the same spacing maybe something like this
Or use the built in replace function on the Home ribbonPlease Login or Register to view this content.
Last edited by Philb1; 09-28-2013 at 05:07 AM.
Try this...
In A1 Cell
222 h18 m 56 s
In B1 Cell
=IFERROR(TRIM(LEFT(A1,SEARCH("H",A1)-1))&":"&TEXT(TRIM(MID(A1,SEARCH("H",A1)+1,SEARCH("M",A1)-SEARCH("H",A1)-1)),"00")&":"&TEXT(TRIM(SUBSTITUTE(MID(A1,SEARCH("M",A1)+1,255),"s","")),"00"),"")
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
welcome to the forum, soheLengr. another alternative:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),"h",":"),"m",":"),"s","")+0
format cells to custom:
[hh]:mm:ss
assumption is you always have h, m & s.
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
Welcome to the Forum!
Because your first post is an Excel question rather than an introduction, I have moved it to the appropriate forum. Edit: Never mind, someone beat me to it!
Thanks for your reply.
it is work nice,
how convert 234 to 234:00:00(hh:mm:ss)
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
how count B2 equal or less then 22 where A1 any value
A1 B2
25 22
A1 B2
22 22
A1 B2
18 18
What is it that you are trying to do? You have added 2 questions to the original and the last one doesn't even seem to relate to the first 2 in any way.
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks