PC Review


Reply
Thread Tools Rate Thread

Adjusting time data to nearest ten minute block

 
 
MJKelly
Guest
Posts: n/a
 
      27th Mar 2010
Hi,

I have a column of time data in hh:mm format which I need to adjust.
I need the time to be changed to the nearest ten minutes so 13:01
would change to 13:00 and 13:05 would round up to 13:10. Can you
help? Would I need to try and if statement with Right(A1,1) etc?

Thanks,
Matt
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      27th Mar 2010
Hi,

Do it like this

=ROUND(A1*(24*6),0)/(24*6)

where 24*6 equals the number of 20 minute periods in a day, there are 6 ten
minute periods in an hour. Changing the to 24*4 makes it work for 15 minutes
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"MJKelly" wrote:

> Hi,
>
> I have a column of time data in hh:mm format which I need to adjust.
> I need the time to be changed to the nearest ten minutes so 13:01
> would change to 13:00 and 13:05 would round up to 13:10. Can you
> help? Would I need to try and if statement with Right(A1,1) etc?
>
> Thanks,
> Matt
> .
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      27th Mar 2010
I meant

where 24*6 equals the number of 10 minute periods in a day
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Mike H" wrote:

> Hi,
>
> Do it like this
>
> =ROUND(A1*(24*6),0)/(24*6)
>
> where 24*6 equals the number of 20 minute periods in a day, there are 6 ten
> minute periods in an hour. Changing the to 24*4 makes it work for 15 minutes
> --
> Mike
>
> When competing hypotheses are otherwise equal, adopt the hypothesis that
> introduces the fewest assumptions while still sufficiently answering the
> question.
>
>
> "MJKelly" wrote:
>
> > Hi,
> >
> > I have a column of time data in hh:mm format which I need to adjust.
> > I need the time to be changed to the nearest ten minutes so 13:01
> > would change to 13:00 and 13:05 would round up to 13:10. Can you
> > help? Would I need to try and if statement with Right(A1,1) etc?
> >
> > Thanks,
> > Matt
> > .
> >

 
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
round to nearest 30-minute interval Jeff Norville Microsoft Excel Programming 2 23rd Jul 2009 04:18 PM
Adjusting numbers to nearest preferred number BRob Microsoft Excel Worksheet Functions 1 1st May 2008 11:16 AM
Rounding Up To Nearest Minute =?Utf-8?B?RnJlZCAiRGppbm4iIEhvbHN0aW5ncw==?= Microsoft Excel Misc 3 7th Feb 2007 12:04 AM
how do i round time to the nearest half a minute =?Utf-8?B?QWxleA==?= Microsoft Excel Misc 3 25th Sep 2006 11:25 PM
Rounding time values to nearest 15 minute and convert to decimal Jeff Muniz Microsoft Excel Discussion 1 7th Jul 2003 02:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 AM.