Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cpme
 
Posts: n/a
Default How do I round time?

I am trying to build a timecard database in Excel. How do I go about
rounding the time to the nearest 1/4 hour? Is this even possible? I tried
using the MROUND function but you have to specify a specific number to round
to and since I'm dealing with timecards, the numbers are always different.
Any ideas?
  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

Check out this web site. Scroll down to the bottom:
http://www.cpearson.com/excel/datearith.htm

tj

"cpme" wrote:

I am trying to build a timecard database in Excel. How do I go about
rounding the time to the nearest 1/4 hour? Is this even possible? I tried
using the MROUND function but you have to specify a specific number to round
to and since I'm dealing with timecards, the numbers are always different.
Any ideas?

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Take a look at http://www.xldynamic.com/source/xld.Rounding.html#time

--

HTH

RP
(remove nothere from the email address if mailing direct)


"cpme" wrote in message
...
I am trying to build a timecard database in Excel. How do I go about
rounding the time to the nearest 1/4 hour? Is this even possible? I

tried
using the MROUND function but you have to specify a specific number to

round
to and since I'm dealing with timecards, the numbers are always different.
Any ideas?



  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 16 Nov 2004 15:23:01 -0800, "cpme"
wrote:

I am trying to build a timecard database in Excel. How do I go about
rounding the time to the nearest 1/4 hour? Is this even possible? I tried
using the MROUND function but you have to specify a specific number to round
to and since I'm dealing with timecards, the numbers are always different.
Any ideas?


Since you are using MROUND, you can use the formula:

=mround(A1,TIME(0,15,0))

Or, if you do not want to have the ATP installed:

=ROUND(K1/(0.25/24),0)*(0.25/24)

(0.25/24 is the equivalent of 1/4 hour in Excel time and equals TIME(0,15,0))


--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM


All times are GMT +1. The time now is 02:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"