+ Reply to Thread
Results 1 to 5 of 5

Changing 00h:00m:00s to 00:00:00

  1. #1
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Changing 00h:00m:00s to 00:00:00

    Does anyone know how to change 00h:00m:00s to 00:00:00 in excel....please help.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Changing 00h:00m:00s to 00:00:00

    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","")

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Changing 00h:00m:00s to 00:00:00

    Maybe this

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",""),"m",""),"s","")

    A
    B
    1
    00h: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

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Changing 00h:00m:00s to 00:00:00

    =--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1, "h", ""),"m",""),"s","")
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Changing 00h:00m:00s to 00:00:00

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 10-22-2013, 01:04 PM
  2. [SOLVED] Changing CSE formula and changing Vlookup to Index Match
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2013, 08:18 PM
  3. [SOLVED] Changing fill color of shapes based on changing cell value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:33 AM
  4. Changing colour on changing a Data Validation List added with VBA
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-16-2011, 08:15 AM
  5. Replies: 0
    Last Post: 03-31-2011, 09:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1