+ Reply to Thread
Results 1 to 7 of 7

2400 clock help

  1. #1
    Registered User
    Join Date
    07-11-2018
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    14

    2400 clock help

    I'm unsure if this is the correct place for this. I do think that what I'm trying to accomplish will require a macro. Essentially I would like to type "2300" in a cell and have it display time as 23:00. When I do this, it thinks its a date and displays "4/18/1906 12:00:00 AM". I would like to avoid the need to put a colon in between the hours and minutes. If anyone can give me any insight as to how to approach this it would be greatly appreciated.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: 2400 clock help

    Here you will find formula as well as a macro for your request: https://excel.tips.net/T002775_Conve..._to_Times.html
    Click the * to say thanks.

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: 2400 clock help

    Make 1 column to enter time no colon,and another to parse it WITH.
    =Concatenation(left(a1,2),":",right(a1,2))
    Last edited by ranman256; 07-19-2018 at 10:55 AM.

  4. #4
    Registered User
    Join Date
    07-11-2018
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    14

    Re: 2400 clock help

    Quote Originally Posted by ranman256 View Post
    Make 1 column to enter time no colon,and another to parse it WITH.
    =Concatenation(left(a1,2),":",right(a2,2))
    I'm not sure what you mean. Could you show me a simple example on a spreadsheet so I can try and mimic the effect?

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: 2400 clock help

    Put this event in the sheet module:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  6. #6
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: 2400 clock help

    There is a formatting / cell mask trick that can present 2300 as 23:00

    the cell format should be 00\:00

    see attachement
    Attached Files Attached Files

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: 2400 clock help

    Using Roel's formatting cell mask makes a better event!

    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. Clock In/ Clock out macro
    By DevonH in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2019, 01:33 PM
  2. Replies: 5
    Last Post: 07-17-2017, 12:44 PM
  3. [SOLVED] Calculating Allocated Hours Based On Clock In and Clock Out
    By rahul_ferns76 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-15-2016, 07:46 AM
  4. how do I allow for 24:00 (2400) timestamp in my code ??
    By Dj Duck in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-27-2016, 08:24 PM
  5. VBA or Macro to Help with clock in/Clock out
    By kwd114 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2015, 02:19 PM
  6. Clock in/Clock out calculation
    By phatpandas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2007, 03:23 PM
  7. [SOLVED] Start Clock/Stop Clock
    By abfabrob in forum Excel General
    Replies: 9
    Last Post: 06-28-2005, 12:05 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