+ Reply to Thread
Results 1 to 6 of 6

Round the time

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    34

    Round the time

    Hello,

    Im on to the next job and next project...

    We have to enter employee times here, we use millitary time without the : so 4pm is just 1600.. Im looking for a way to have excel either display an alert if not rounded to the quarter hour, or just automatically change it.

    ex: 1602 should be 1600 or 1609 should be 1615.

    any help is appriciated!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Round the time

    Hi,

    You need the MRound() Function. See:

    http://excel.tips.net/T002186_Rounding_Time.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Round the time

    Assume your entry is in A1. Enter this formula in B1. =TEXT(LEFT(A1,2),"#00")&TEXT(MROUND(RIGHT(A1,2),15),"#00")

  4. #4
    Registered User
    Join Date
    03-05-2014
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Round the time

    Thanks so much guys!

  5. #5
    Registered User
    Join Date
    03-05-2014
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Round the time

    Actually... is there a way i can use this with vba to cover a range of cells?

  6. #6
    Registered User
    Join Date
    03-05-2014
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Round the time

    Im trying to do something like:
    HTML Code: 
    but I get a compile error on the #

    any thoughts?

+ 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] Round the time
    By kumawat_s in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-04-2013, 08:09 AM
  2. [SOLVED] round up time unless already at the desired time value
    By mattgoudey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2013, 10:20 AM
  3. [SOLVED] Round Time?
    By mycon73 in forum Excel General
    Replies: 3
    Last Post: 09-22-2012, 11:06 AM
  4. [SOLVED] Round down for time
    By Shadowman13 in forum Excel General
    Replies: 3
    Last Post: 05-20-2005, 07:06 PM
  5. Round UP Time
    By carl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2005, 01:06 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