ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Round down for time (https://www.excelbanter.com/excel-discussion-misc-queries/27099-round-down-time.html)

Shadowman13

Round down for time
 
Can someone provide a formula to use for rounding down time data.
Example 9:37 needs to round down to 9:30 and 7:25 needs to round down to 7:00.

Thanks - in advance...!!!

Dave Peterson

=FLOOR(A1,TIME(0,30,0))
And format as time.

Shadowman13 wrote:

Can someone provide a formula to use for rounding down time data.
Example 9:37 needs to round down to 9:30 and 7:25 needs to round down to 7:00.

Thanks - in advance...!!!


--

Dave Peterson

Bob Phillips

=ROUNDDOWN(A10*48,0)/48

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Shadowman13" wrote in message
...
Can someone provide a formula to use for rounding down time data.
Example 9:37 needs to round down to 9:30 and 7:25 needs to round down to

7:00.

Thanks - in advance...!!!




JE McGimpsey

Your examples are rather ambiguous, but I'll assume you want to round
down to the nearest half-hour:

=FLOOR(A1,"00:30")

or, since XL stores times as fractional days, equivalently

=FLOOR(A1,1/48)


In article ,
"Shadowman13" wrote:

Can someone provide a formula to use for rounding down time data.
Example 9:37 needs to round down to 9:30 and 7:25 needs to round down to 7:00.

Thanks - in advance...!!!



All times are GMT +1. The time now is 06:03 PM.

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