+ Reply to Thread
Results 1 to 6 of 6

Display HOURS in one cell and MINUTES in another

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    23

    Display HOURS in one cell and MINUTES in another

    I am creating a overtime tracking sheet using military time format. Example: 1930 hrs. How can I have 19 display in cell C3 and 30 displayed in cell C4 without display a colon? Thank you.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,519

    Re: Display HOURS in one cell and MINUTES in another

    Try this:

    C3: =HOUR(C2)
    C4: =MINUTE(C2)

    assuming C2 has your time.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-10-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Display HOURS in one cell and MINUTES in another

    Thank you for your reply Pete. Unfortunately this didn't work. I have formatted C3 to "hh" and entered "C3: =C2" and it displays "19" as I want. The problem is with the Minutes. I formatted C4 to "mm" under custom setting and the entered "C4: =C2" and 01 is whats displayed.

  4. #4
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Display HOURS in one cell and MINUTES in another

    Remove your formatting and try Pete's solution again... it works fine

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,519

    Re: Display HOURS in one cell and MINUTES in another

    Use my formulas, but format both cells as General or Number.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    05-10-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Display HOURS in one cell and MINUTES in another

    I removed the formatting and Pete code works excellent. Thank you Pete and Jasper.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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