+ Reply to Thread
Results 1 to 2 of 2

How to Convert DD/MM/YY HHMM to DD/MM/YY HH:MM

  1. #1
    Registered User
    Join Date
    04-27-2021
    Location
    Sacramento, Calif.
    MS-Off Ver
    Microsoft Excel for Office 365 MSO 32-bit
    Posts
    1

    Question How to Convert DD/MM/YY HHMM to DD/MM/YY HH:MM

    Hi all,

    I have searched all over the internet to try and find a formula that will convert dd/mm/yy hhmm to dd/mm/yy hh:mm.

    For example, I wish to convert 03/28/20 0859 to 03/28/20 08:59.

    Is this possible?

    Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How to Convert DD/MM/YY HHMM to DD/MM/YY HH:MM

    Assuming these are text strings and they are consistently dd/mm/yy hhmm, then something like =LEFT(A1,11)&":"&RIGHT(A1,2) will output the text with the ":" inserted in between the hour and minute portion.

    If you need to actually convert to a date/time serial number, something like =DATEVALUE(LEFT(A1,8))+TIMEVALUE(MID(A1,10,2)&":"&RIGHT(A1,2)) will convert to a date time serial number. IMPORTANT -- The DATEVALUE() function will use your system's regional settings to interpret the date text. Where you are in the US, if your system's regional settings are set to a typical MDY US setting, then this won't work. If you need something that will work independent of your system setting, then you will probably want to use the DATE() function instead of DATEVALUE() =DATE(VALUE(MID(A1,7,2)),VALUE(MID(A1,4,2)),VALUE(LEFT(A1,2)))+TIMEVALUE(...). Also note that, in either case, Excel is currently set up to interpret 2 digit years less than about 29 as 20yy, but years greater than 29 will be interpreted as 19yy -- just in case you expect this formula to ever see dates later than about a decade in the future.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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 hhmm format to HH:MM Format
    By aarona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-03-2019, 03:15 AM
  2. Please describe how this works? =TEXT(A1,"00\:00")+0 to convert HHMM to HH:MM
    By positiveguy1960 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2016, 01:14 PM
  3. Costing Template: £total = hhmm x unit rate: Drop down?
    By orlasface in forum Excel General
    Replies: 2
    Last Post: 01-21-2016, 05:38 AM
  4. [SOLVED] Entering Time as HHMM; having it converted to HH:MM
    By Chrisb1985 in forum Excel General
    Replies: 17
    Last Post: 08-05-2013, 05:00 AM
  5. [SOLVED] Entering Time as HHMM; having it converted to HH:MM
    By TC in forum Excel General
    Replies: 7
    Last Post: 08-02-2013, 10:49 AM
  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] Worksheet_Change: Date Time Input [mmddyy hhmm] to [mm/dd/yy hh:mm]
    By Brian Handly in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2005, 12:55 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