Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My formula calculates the time 2 hours from now and I need it to round up to
the next hour: =NOW()+TIME(2,0,0) I tried a few things but they didn't work! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Wed, 28 Jun 2006 18:10:01 -0700, ivory_kitten
wrote: My formula calculates the time 2 hours from now and I need it to round up to the next hour: =NOW()+TIME(2,0,0) I tried a few things but they didn't work! The CEILING function should do what you want. Try this: =CEILING(NOW()+TIME(2,,),TIME(1,,)) --ron |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
And if one doesn't want to include all days since 1900 one could use
=CEILING(MOD(NOW(),1)+TIME(2,,),TIME(1,,)) or even =CEILING(MOD(NOW(),1)+2/24,1/24) -- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutions www.nwexcelsolutions.com "It is a good thing to follow the first law of holes; if you are in one stop digging." Lord Healey "Ron Rosenfeld" wrote in message ... On Wed, 28 Jun 2006 18:10:01 -0700, ivory_kitten wrote: My formula calculates the time 2 hours from now and I need it to round up to the next hour: =NOW()+TIME(2,0,0) I tried a few things but they didn't work! The CEILING function should do what you want. Try this: =CEILING(NOW()+TIME(2,,),TIME(1,,)) --ron |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Problem solved, didn't seem to need to use the mod bit, but will keep in mind
just in case! Thanks guys! "Peo Sjoblom" wrote: And if one doesn't want to include all days since 1900 one could use =CEILING(MOD(NOW(),1)+TIME(2,,),TIME(1,,)) or even =CEILING(MOD(NOW(),1)+2/24,1/24) -- Regards, Peo Sjoblom Excel 95 - Excel 2007 Northwest Excel Solutions www.nwexcelsolutions.com "It is a good thing to follow the first law of holes; if you are in one stop digging." Lord Healey "Ron Rosenfeld" wrote in message ... On Wed, 28 Jun 2006 18:10:01 -0700, ivory_kitten wrote: My formula calculates the time 2 hours from now and I need it to round up to the next hour: =NOW()+TIME(2,0,0) I tried a few things but they didn't work! The CEILING function should do what you want. Try this: =CEILING(NOW()+TIME(2,,),TIME(1,,)) --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I round hours worked to the next half hour with a 24hr shif | Excel Worksheet Functions | |||
Can this adjusted GPA formual be accomplised? | Excel Discussion (Misc queries) | |||
adding rows of hours and minutes to get a total | Excel Worksheet Functions | |||
Round whole numbers up and down | Excel Discussion (Misc queries) | |||
Subtracting paid hours from unpaid hours | Excel Worksheet Functions |