Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Randy
 
Posts: n/a
Default Round current time

I have a timesheet with checkboxes. When the checkbox is checked it
automatically enters the current time into a cell. I need the time to be
rounded to the nearest five minutes...I have the time format set to show as
1:30 AM but seems to read 3/28/2006 9:45:55 AM...here is the formula I have
in the cell to include the current time: =IF(F18=TRUE,NOW(),"")....F18 refers
to the checkbox when checked. How can i get the time to round up to the next
5 minute interval? or can I? Any help would be greatly appreaciated. I thank
you in advance for your assistance!
--
Randy Street
Rancho Cucamonga, CA
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Round current time

To just get the time you can use

=IF(F18=TRUE,MOD(NOW(),1),"")

to roundup to nearest 5 minute

=IF(F18=TRUE,CEILING(MOD(NOW(),1),TIME(,5,)),"")

having said that you realize this is not a static time when the checkbox was
checked, it will always update
when the sheet is calculated? You can use circular reference or a macro to
get a static timestamp. example here

http://www.mcgimpsey.com/excel/timestamp.html


"Randy" wrote in message
...
I have a timesheet with checkboxes. When the checkbox is checked it
automatically enters the current time into a cell. I need the time to be
rounded to the nearest five minutes...I have the time format set to show
as
1:30 AM but seems to read 3/28/2006 9:45:55 AM...here is the formula I
have
in the cell to include the current time: =IF(F18=TRUE,NOW(),"")....F18
refers
to the checkbox when checked. How can i get the time to round up to the
next
5 minute interval? or can I? Any help would be greatly appreaciated. I
thank
you in advance for your assistance!
--
Randy Street
Rancho Cucamonga, CA



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Randy
 
Posts: n/a
Default Round current time

You my friend are a Rock Star!!! Worked like a charm! yes I was already aware
of the constant updating and have worked around that already...Just could not
figure out this part...thank you so very much! You Rock!
--
Randy Street
Rancho Cucamonga, CA


"Peo Sjoblom" wrote:

To just get the time you can use

=IF(F18=TRUE,MOD(NOW(),1),"")

to roundup to nearest 5 minute

=IF(F18=TRUE,CEILING(MOD(NOW(),1),TIME(,5,)),"")

having said that you realize this is not a static time when the checkbox was
checked, it will always update
when the sheet is calculated? You can use circular reference or a macro to
get a static timestamp. example here

http://www.mcgimpsey.com/excel/timestamp.html


"Randy" wrote in message
...
I have a timesheet with checkboxes. When the checkbox is checked it
automatically enters the current time into a cell. I need the time to be
rounded to the nearest five minutes...I have the time format set to show
as
1:30 AM but seems to read 3/28/2006 9:45:55 AM...here is the formula I
have
in the cell to include the current time: =IF(F18=TRUE,NOW(),"")....F18
refers
to the checkbox when checked. How can i get the time to round up to the
next
5 minute interval? or can I? Any help would be greatly appreaciated. I
thank
you in advance for your assistance!
--
Randy Street
Rancho Cucamonga, CA




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
How to show current date and time vsr_kmb New Users to Excel 3 March 28th 06 04:09 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM
How to calculate Date & Time differences robs Excel Worksheet Functions 2 October 4th 05 04:22 PM
Round Up Time IF carl Excel Worksheet Functions 4 January 7th 05 07:25 PM
Round UP Time carl Excel Worksheet Functions 1 January 7th 05 04:31 PM


All times are GMT +1. The time now is 10:33 AM.

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"