Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Adjusting time data to nearest ten minute block

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Adjusting time data to nearest ten minute block

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
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Adjusting time data to nearest ten minute block

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round to the nearest minute if more than 6 seconds bbarkman Excel Worksheet Functions 2 July 30th 08 03:03 PM
Adjusting numbers to nearest preferred number BRob Excel Worksheet Functions 1 May 1st 08 11:16 AM
Rounding Up To Nearest Minute Fred Djinn Holstings Excel Discussion (Misc queries) 3 February 7th 07 12:04 AM
how do i round time to the nearest half a minute ALEX Excel Discussion (Misc queries) 3 September 25th 06 11:25 PM
convert time from 60 minute hour to 100 minute hour Jboerding Excel Discussion (Misc queries) 2 July 6th 05 11:30 PM


All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"