+ Reply to Thread
Results 1 to 4 of 4

convert hhmm format to HH:MM Format

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    convert hhmm format to HH:MM Format

    Hi All,

    Not sure if this is under VBA.

    But I need to change the format of columns D to G from hhmm to hh:mm

    See attached workbook.

    Any help will do.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,641

    Re: convert hhmm format to HH:MM Format

    D2:
    =TIMEVALUE(LEFT(C2,2)&":"&MID(C2,3,2))
    E2:
    =TIMEVALUE(MID(C2,9,2)&":"&RIGHT(C2,2))
    F2:
    =TIMEVALUE(LEFT(A2,2)&":"&MID(A2,3,2))
    G2:
    =TIMEVALUE(MID(A2,9,2)&":"&RIGHT(A2,2))

    Format the cell as Time and fildown.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,459

    Re: convert hhmm format to HH:MM Format

    It's actually all over the place if you search the Net https://www.extendoffice.com/documen...g-to-time.html

  4. #4
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: convert hhmm format to HH:MM Format

    Thanks! both working

+ 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] Convert Dates from Apr 11, 2018 format to numeric format MM/DD/YYYY
    By worswick25 in forum Excel General
    Replies: 16
    Last Post: 04-17-2018, 06:38 AM
  2. Convert data entered in a different format to Date format
    By rakesh2806 in forum Excel General
    Replies: 6
    Last Post: 02-19-2014, 12:50 PM
  3. [SOLVED] Require vba or formula for convert general format data in date format
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2013, 03:53 AM
  4. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  5. Excel: How to convert time format into number format that can be added?
    By Frances Jones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2012, 04:10 PM
  6. Using count function with dates in ddmmyy hhmm format
    By Apel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-04-2009, 02:15 PM
  7. [SOLVED] Excel date format convert to string format
    By man in forum Excel General
    Replies: 1
    Last Post: 08-17-2006, 05:05 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