A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Averaging Time



 
 
Thread Tools Display Modes
  #1  
Old December 14th, 2009, 11:51 PM posted to microsoft.public.excel.misc
Jim
external usenet poster
 
Posts: 1,404
Default Averaging Time

Hello:

I have data that looks like the following:
3:09:15
22:45:07
17:39:10
17:39:10
18:52:47
8:39:35

I would like to learn a formula that will round the time to the top and
bottom of the hour using the 15 and 45 as the break point. For example
3:09:15 to 3:00. 17:39:10 to 17:30.

Thanks for the hedlp.
Jim
  #2  
Old December 15th, 2009, 12:03 AM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
Default Averaging Time

=MROUND(A18,TIME(,30,)) and format the cell accordingly.

If you have problems with the MROUND function, look it up in Excel help.
--
David Biddulph

"Jim" wrote in message
...
Hello:

I have data that looks like the following:
3:09:15
22:45:07
17:39:10
17:39:10
18:52:47
8:39:35

I would like to learn a formula that will round the time to the top and
bottom of the hour using the 15 and 45 as the break point. For example
3:09:15 to 3:00. 17:39:10 to 17:30.

Thanks for the hedlp.
Jim



  #3  
Old December 15th, 2009, 12:19 AM posted to microsoft.public.excel.misc
bapeltzer
external usenet poster
 
Posts: 43
Default Averaging Time

If your time is iin cell A1, use the formula =round(a1*48,0)/48
The reasoning is that you're asking to round to the nearest 1/2 hour. To
Excel, 1 is a day, so a 1/2 hour is 1/48.

"Jim" wrote:

Hello:

I have data that looks like the following:
3:09:15
22:45:07
17:39:10
17:39:10
18:52:47
8:39:35

I would like to learn a formula that will round the time to the top and
bottom of the hour using the 15 and 45 as the break point. For example
3:09:15 to 3:00. 17:39:10 to 17:30.

Thanks for the hedlp.
Jim

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.