+ Reply to Thread
Results 1 to 5 of 5

Change time format

  1. #1
    Registered User
    Join Date
    09-09-2011
    Location
    kuching, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    52

    Change time format

    Hi All,

    I had an excel file with wrong time format keyed in. Example:

    11.00am
    5.20pm

    how can i change it to actual time format?

    11:00:00
    17:20:00

    Please help.
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Change time format

    Select the range of cells in question

    Press the key combo of CTRL H. This will open the Find/Replace userform.

    Find what: .
    Replace with: :
    Replace All

    Find what: am
    Replace with: <enter a space character here>am
    Replace All

    Find what: pm
    Replace with: <enter a space character here>pm
    Replace All

    Format as h:mm
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Change time format

    hi nickh. try:
    =--SUBSTITUTE(REPLACE(A1,6,0," "),".",":")

    format cells to whatever desired. probably:
    hh:mm

    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

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    kuching, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Change time format

    Wow. Both ways works fine from Tony and beni. Thanks for the fast response!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Change time format

    You're welcome. We appreciate the feedback!

+ 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. [SOLVED] Time format won't change?
    By WGBarry in forum Excel General
    Replies: 10
    Last Post: 05-06-2022, 09:16 AM
  2. [SOLVED] change time format to text
    By wings1080 in forum Excel General
    Replies: 9
    Last Post: 10-12-2013, 10:55 AM
  3. Change format of lots of data cell to a time format
    By dazza67 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-24-2013, 03:24 PM
  4. Change Time to a Custom Format
    By vzwtester in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-05-2013, 01:24 PM
  5. change format for time value
    By Qaspec in forum Excel General
    Replies: 1
    Last Post: 05-23-2005, 06:06 PM

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