Does anyone know how to change 00h:00m:00s to 00:00:00 in excel....please help.
Does anyone know how to change 00h:00m:00s to 00:00:00 in excel....please help.
depends on how it is entered but I guess if it is just a value in a cell then you could do:
=left(A1,2)&":"&mid(A1,5,2)&":"&mid(A1,9,2)
or
=substitute(substitute(substitute(A1,"h",""),"m",""),"s","")
Maybe this
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",""),"m",""),"s","")
A B 100h:00m:00s 00:00:00
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
=--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1, "h", ""),"m",""),"s","")
Entia non sunt multiplicanda sine necessitate
Don't forget to format your cell properly (for shg's solution) or it will appear as 0. Previous solutions result in text values that would not work in SUM formulas.
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks