+ Reply to Thread
Results 1 to 3 of 3

Convert 3 digit or 4 digit number to time format

  1. #1
    Forum Contributor
    Join Date
    06-23-2014
    Location
    Dubbo, Australia
    MS-Off Ver
    EXCEL 2019
    Posts
    180

    Convert 3 digit or 4 digit number to time format

    Hi folks

    Probably simple, I hope. In cell K19 I have a user entry which can be any 24-hour format time, eg, 820 (8:20am), 1020 (10:20am), or 1630 (4:30pm)
    I do not want to express the AM or PM element, but simply put a colon before the last two digits. SO the times above would equate to 8:20, 10:20 and 16:30 respectively.
    The result is NOT used for analysis or further use. It's just an information only cell!

    Any help appreciated. I have put the code below that it will appear in...

    Please Login or Register  to view this content.
    Thanks in anticipation
    Pete
    Pete
    Struggling Solutions Architect

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Convert 3 digit or 4 digit number to time format

    try:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

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

    Re: Convert 3 digit or 4 digit number to time format

    Quote Originally Posted by dubcap01 View Post
    Hi folks

    Probably simple, I hope. In cell K19 I have a user entry which can be any 24-hour format time, eg, 820 (8:20am), 1020 (10:20am), or 1630 (4:30pm)
    I do not want to express the AM or PM element, but simply put a colon before the last two digits. SO the times above would equate to 8:20, 10:20 and 16:30 respectively.
    The result is NOT used for analysis or further use. It's just an information only cell!

    Any help appreciated. I have put the code below that it will appear in...
    Try change to
    Please Login or Register  to view this content.

+ 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. Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  3. [SOLVED] Converting a 4 digit number into Time Format
    By Solidstan in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-16-2014, 09:27 AM
  4. Convert 4-5 digit number to time HH:MM:SS
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-19-2012, 01:53 PM
  5. convert 9 digit number into day and time
    By cords in forum Excel General
    Replies: 7
    Last Post: 03-17-2012, 12:45 AM
  6. Replies: 2
    Last Post: 06-17-2010, 08:36 PM
  7. [SOLVED] number to time format when digit length varies
    By UM Win in forum Excel General
    Replies: 5
    Last Post: 12-08-2005, 10:00 PM
  8. [SOLVED] number to time format when digit length varies
    By UM Win in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2005, 10:00 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