ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Rounding off time (https://www.excelbanter.com/excel-worksheet-functions/236512-rounding-off-time.html)

RD

Rounding off time
 
I have the following data: 7:45:00 AM I would like to round off to 8:00 (in
24 hour format). I thought it would be simple but I can't seem to get it.



Eduardo

Rounding off time
 
Hi,
try

=ROUNDUP(A1*15,0)/15

"RD" wrote:

I have the following data: 7:45:00 AM I would like to round off to 8:00 (in
24 hour format). I thought it would be simple but I can't seem to get it.




Bernard Liengme[_3_]

Rounding off time
 
This rounds the time in A1 to the nearest 15 mins
=ROUND(A1/TIME(0,15,0),0)*TIME(0,15,0)
Of course, you can replace A1 by a formula
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"RD" wrote in message
...
I have the following data: 7:45:00 AM I would like to round off to 8:00
(in 24 hour format). I thought it would be simple but I can't seem to get
it.




RD

Rounding off time
 
Thanks for the clue. Wasn't quite it but I changed it to
=ROUND(A1/TIME(0,60,0),0)*TIME(1,0,0) which worked great with a h:mm format.

"Bernard Liengme" wrote in message
...
This rounds the time in A1 to the nearest 15 mins
=ROUND(A1/TIME(0,15,0),0)*TIME(0,15,0)
Of course, you can replace A1 by a formula
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"RD" wrote in message
...
I have the following data: 7:45:00 AM I would like to round off to 8:00
(in 24 hour format). I thought it would be simple but I can't seem to get
it.






T. Valko

Rounding off time
 
To round to the nearest hour:

=MROUND(A1,1/24)

MROUND requires the Analysis ToolPak add-in be installed in Excel versions
prior to Excel 2007.

--
Biff
Microsoft Excel MVP


"RD" wrote in message
...
I have the following data: 7:45:00 AM I would like to round off to 8:00 (in
24 hour format). I thought it would be simple but I can't seem to get it.





Shane Devenshire[_2_]

Rounding off time
 
Hi,

You can also use

=ROUND(A1*24,)/24

and format to time


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"RD" wrote:

Thanks for the clue. Wasn't quite it but I changed it to
=ROUND(A1/TIME(0,60,0),0)*TIME(1,0,0) which worked great with a h:mm format.

"Bernard Liengme" wrote in message
...
This rounds the time in A1 to the nearest 15 mins
=ROUND(A1/TIME(0,15,0),0)*TIME(0,15,0)
Of course, you can replace A1 by a formula
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"RD" wrote in message
...
I have the following data: 7:45:00 AM I would like to round off to 8:00
(in 24 hour format). I thought it would be simple but I can't seem to get
it.








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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com