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 Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

handling elapsed time data



 
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2010, 05:32 PM posted to microsoft.public.access
Brad
external usenet poster
 
Posts: 943
Default handling elapsed time data

I am trying to import and run calculations on data dealing with total time
logged into a phone system for a group of users. the data is in the following
format:

User Date Total Time
user1 1/1/10 7:45:32
user1 1/2/10 6:31:45
user2 1/1/10 8:05:45

I have found many suggestions for how to calculate elapesd time, but cannot
seem to find how to store/format data already in this format. I am needing to
store the data this way in the table so I can run totals for users/date
ranges. Any suggestions?
  #2  
Old April 22nd, 2010, 05:58 PM posted to microsoft.public.access
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default handling elapsed time data

Brad -

If you can work with decimal hours, that might be one way to store your
values. That would be a numeric field, and is 24 times the value calculated
as the time difference. So the Total Time of 7:45:32 would be 7.75889 hours
(just over 7 3/4 hours); 6:31:45 would be 6.52917 hours (just over 6 1/2
hours), etc. Being a numeric field, you can add and subtract hours easily.
You might get a weekly value of 41.365 hours for a user, which would be OK.

To set this up, just add another column to your table that is numeric
(single or double). Run an update query that takes your 'Total Time' column
and multiplies it by 24 and places the result in the new decimal hours
column. Depending on your needs, you can remove the total time column once
your code is set up to regularly populate the decimal hours column.

Hope that helps!

--
Daryl S


"brad" wrote:

I am trying to import and run calculations on data dealing with total time
logged into a phone system for a group of users. the data is in the following
format:

User Date Total Time
user1 1/1/10 7:45:32
user1 1/2/10 6:31:45
user2 1/1/10 8:05:45

I have found many suggestions for how to calculate elapesd time, but cannot
seem to find how to store/format data already in this format. I am needing to
store the data this way in the table so I can run totals for users/date
ranges. Any suggestions?

  #3  
Old April 22nd, 2010, 06:04 PM posted to microsoft.public.access
Brad
external usenet poster
 
Posts: 943
Default handling elapsed time data

Thank you! I will try this as well. There is a large amount of data so this
may be easier to work with. Thanks.

"Daryl S" wrote:

Brad -

If you can work with decimal hours, that might be one way to store your
values. That would be a numeric field, and is 24 times the value calculated
as the time difference. So the Total Time of 7:45:32 would be 7.75889 hours
(just over 7 3/4 hours); 6:31:45 would be 6.52917 hours (just over 6 1/2
hours), etc. Being a numeric field, you can add and subtract hours easily.
You might get a weekly value of 41.365 hours for a user, which would be OK.

To set this up, just add another column to your table that is numeric
(single or double). Run an update query that takes your 'Total Time' column
and multiplies it by 24 and places the result in the new decimal hours
column. Depending on your needs, you can remove the total time column once
your code is set up to regularly populate the decimal hours column.

Hope that helps!

--
Daryl S


"brad" wrote:

I am trying to import and run calculations on data dealing with total time
logged into a phone system for a group of users. the data is in the following
format:

User Date Total Time
user1 1/1/10 7:45:32
user1 1/2/10 6:31:45
user2 1/1/10 8:05:45

I have found many suggestions for how to calculate elapesd time, but cannot
seem to find how to store/format data already in this format. I am needing to
store the data this way in the table so I can run totals for users/date
ranges. Any suggestions?

 




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 08:47 PM.


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