ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Round Time to 30 minutes (https://www.excelbanter.com/excel-worksheet-functions/76530-round-time-30-minutes.html)

Shiv

Round Time to 30 minutes
 
Hello All,

I want to write a function that will round my stat time and end time fields
to 30 minutes.

i.e. if start time is 10:20 it should be converted to 10:30 and if it is
10:40, it should be converted to 11:00 so on and so forth.

Your help on this will be much appreciated

Niek Otten

Round Time to 30 minutes
 
One way:

=ROUNDUP(A1*48,0)/48

--
Kind regards,

Niek Otten


"Shiv" wrote in message ...
Hello All,

I want to write a function that will round my stat time and end time fields
to 30 minutes.

i.e. if start time is 10:20 it should be converted to 10:30 and if it is
10:40, it should be converted to 11:00 so on and so forth.

Your help on this will be much appreciated





All times are GMT +1. The time now is 04:21 AM.

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