PC Review


Reply
Thread Tools Rate Thread

advice on rounding or ceilng a 24 hour time value

 
 
sammy
Guest
Posts: n/a
 
      23rd Aug 2010
Guys,

Appreciate advice on rounding up a 24 hour time values

I'm hoping for some advice on 2 slightly different roundup formulas one for
rounding to the hour and one to nearest 15 mins.

Thanks in advance

Sammy


current preferred
data rounding to nearest hour

21:51:13 22
22:56:23 23
23:56:02 00
00:58:00 01
01:54:59 02


current preferred
data rounding to nearest 15 mins

00:12:00 01:15
01:47:59 02:45



 
Reply With Quote
 
 
 
 
sammy
Guest
Posts: n/a
 
      23rd Aug 2010
Hope what I say makes sense I think its a rounding function that I need to
use.
Sammy
"sammy" <(E-Mail Removed)> wrote in message
news:snCco.4391$(E-Mail Removed)...
> Guys,
>
> Appreciate advice on rounding up a 24 hour time values
>
> I'm hoping for some advice on 2 slightly different roundup formulas one
> for rounding to the hour and one to nearest 15 mins.
>
> Thanks in advance
>
> Sammy
>
>
> current preferred
> data rounding to nearest hour
>
> 21:51:13 22
> 22:56:23 23
> 23:56:02 00
> 00:58:00 01
> 01:54:59 02
>
>
> current preferred
> data rounding to nearest 15 mins
>
> 00:12:00 01:15
> 01:47:59 02:45
>
>
>



 
Reply With Quote
 
zvkmpw
Guest
Posts: n/a
 
      23rd Aug 2010
The following works for me, though the sample answers in the OP don't
look quite right for the second part (I'd think rounding 12 minutes
would be 15 minutes, not an 1 hr 15 min).

> rounding to nearest hour

=ROUND(24*A1,0)/24

> rounding to nearest 15 mins

=ROUND(96*A1,0)/96

In my example, all the cells are "time" values.

The above assumes the requirement is for "nearest" not "roundup." If
that's wrong, check out the ROUNDUP() function.
 
Reply With Quote
 
sammy
Guest
Posts: n/a
 
      25th Aug 2010
thanks for your help done the trick


"zvkmpw" <(E-Mail Removed)> wrote in message
news:9b6aa66e-3fef-4bb9-8846-(E-Mail Removed)...
> The following works for me, though the sample answers in the OP don't
> look quite right for the second part (I'd think rounding 12 minutes
> would be 15 minutes, not an 1 hr 15 min).
>
>> rounding to nearest hour

> =ROUND(24*A1,0)/24
>
>> rounding to nearest 15 mins

> =ROUND(96*A1,0)/96
>
> In my example, all the cells are "time" values.
>
> The above assumes the requirement is for "nearest" not "roundup." If
> that's wrong, check out the ROUNDUP() function.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounding time to nearest Hour =?Utf-8?B?U2llcnJhUm9zZQ==?= Microsoft Excel Worksheet Functions 1 24th Jul 2005 02:57 AM
Rounding time to nearest 1/4 hour =?Utf-8?B?SGFuay1C?= Microsoft Excel New Users 5 24th Nov 2004 04:48 PM
Re: Rounding time to the quarter hour. pfsardella@yahoo.com.nospam Microsoft Excel Worksheet Functions 0 27th Oct 2003 08:34 PM
Re: Rounding time to the quarter hour. Ron Rosenfeld Microsoft Excel Worksheet Functions 0 27th Oct 2003 08:15 PM
Rounding time to the quarter hour. Felipe Microsoft Excel Worksheet Functions 0 27th Oct 2003 07:32 PM


Features
 

Advertising
 

Newsgroups
 


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