Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am looking to round a time field such as this:
6:40:00 AM to the nearest hour, keeping it in a format so that it can be displayed in 24hr format for easy identification as to the time of day. Even keeping the AM/PM would be fine too. Any suggestions? I have exhausted all the ones i thought would work. Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Heres a function to calculate and display results, replace A1 with whatever
cell your time value is in. =TIME(IF(MINUTE(A1)30, HOUR(A1)+1,HOUR(A1)),0,0) "mebsmith" wrote: I am looking to round a time field such as this: 6:40:00 AM to the nearest hour, keeping it in a format so that it can be displayed in 24hr format for easy identification as to the time of day. Even keeping the AM/PM would be fine too. Any suggestions? I have exhausted all the ones i thought would work. Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=ROUND(A1*24,0)/24
This assumes A1 is a time only (no time/date). Hope this helps. -- John C "mebsmith" wrote: I am looking to round a time field such as this: 6:40:00 AM to the nearest hour, keeping it in a format so that it can be displayed in 24hr format for easy identification as to the time of day. Even keeping the AM/PM would be fine too. Any suggestions? I have exhausted all the ones i thought would work. Thanks |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
A1 = 6:40:00 AM =ROUND(A1*24,0)/24 Result = 7:00:00 AM -- Biff Microsoft Excel MVP "mebsmith" wrote in message ... I am looking to round a time field such as this: 6:40:00 AM to the nearest hour, keeping it in a format so that it can be displayed in 24hr format for easy identification as to the time of day. Even keeping the AM/PM would be fine too. Any suggestions? I have exhausted all the ones i thought would work. Thanks |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for the help everyone!!
|
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=MROUND(A2,1/24) and format with a time format which suits your
requirements. Look up MROUND in Excel help. -- David Biddulph "mebsmith" wrote in message ... I am looking to round a time field such as this: 6:40:00 AM to the nearest hour, keeping it in a format so that it can be displayed in 24hr format for easy identification as to the time of day. Even keeping the AM/PM would be fine too. Any suggestions? I have exhausted all the ones i thought would work. Thanks |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
*sigh*
-- John C "John C" wrote: =ROUND(A1*24,0)/24 This assumes A1 is a time only (no time/date). Hope this helps. -- John C "mebsmith" wrote: I am looking to round a time field such as this: 6:40:00 AM to the nearest hour, keeping it in a format so that it can be displayed in 24hr format for easy identification as to the time of day. Even keeping the AM/PM would be fine too. Any suggestions? I have exhausted all the ones i thought would work. Thanks |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You're welcome!
-- Biff Microsoft Excel MVP "mebsmith" wrote in message ... Thanks for the help everyone!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rounding Time. | Excel Worksheet Functions | |||
Rounding time | Excel Discussion (Misc queries) | |||
Time rounding help | Excel Discussion (Misc queries) | |||
Rounding Time | Excel Discussion (Misc queries) | |||
Rounding of Time | Excel Worksheet Functions |