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

Hourly Averages



 
 
Thread Tools Display Modes
  #1  
Old December 1st, 2009, 08:41 PM posted to microsoft.public.access.gettingstarted
~~NRH~~
external usenet poster
 
Posts: 6
Default Hourly Averages

I am new to Access and I am currently using the 2003 version.

I have imported a database from Excel. It consists of the record of every
vehicle passing a survey location for a week (~60000 vehicles). Each record
contains the date and time (in seperate fields) and it's speed. I would like
to work out the hourly average speed.

I have tired using the simple query wizard but I am battling. My biggest
problem is that I can't group the data hourly.

Any ideas?
  #2  
Old December 1st, 2009, 09:59 PM posted to microsoft.public.access.gettingstarted
S.Clark[_2_]
external usenet poster
 
Posts: 423
Default Hourly Averages

Format([DateField], "hh")


"~~NRH~~" wrote:

I am new to Access and I am currently using the 2003 version.

I have imported a database from Excel. It consists of the record of every
vehicle passing a survey location for a week (~60000 vehicles). Each record
contains the date and time (in seperate fields) and it's speed. I would like
to work out the hourly average speed.

I have tired using the simple query wizard but I am battling. My biggest
problem is that I can't group the data hourly.

Any ideas?

  #3  
Old December 1st, 2009, 09:59 PM posted to microsoft.public.access.gettingstarted
S.Clark[_2_]
external usenet poster
 
Posts: 423
Default Hourly Averages

Format([DateField], "hh")


"~~NRH~~" wrote:

I am new to Access and I am currently using the 2003 version.

I have imported a database from Excel. It consists of the record of every
vehicle passing a survey location for a week (~60000 vehicles). Each record
contains the date and time (in seperate fields) and it's speed. I would like
to work out the hourly average speed.

I have tired using the simple query wizard but I am battling. My biggest
problem is that I can't group the data hourly.

Any ideas?

  #4  
Old December 1st, 2009, 09:59 PM posted to microsoft.public.access.gettingstarted
S.Clark[_2_]
external usenet poster
 
Posts: 423
Default Hourly Averages

Format([DateField], "hh")


"~~NRH~~" wrote:

I am new to Access and I am currently using the 2003 version.

I have imported a database from Excel. It consists of the record of every
vehicle passing a survey location for a week (~60000 vehicles). Each record
contains the date and time (in seperate fields) and it's speed. I would like
to work out the hourly average speed.

I have tired using the simple query wizard but I am battling. My biggest
problem is that I can't group the data hourly.

Any ideas?

  #8  
Old December 2nd, 2009, 01:02 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Hourly Averages

It kind of depends on whether you want the average each day and each hour (7 x
24 averages) or just for each hour in the week (24 averages)

You can group by
Hour([YourTimeField])
and by
WeekDay([YourDateField])

If you want the average per hour by day group by both expressions.
If you want the average per hour regardless of the day group by just the first
expression.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

~~NRH~~ wrote:
I am new to Access and I am currently using the 2003 version.

I have imported a database from Excel. It consists of the record of every
vehicle passing a survey location for a week (~60000 vehicles). Each record
contains the date and time (in seperate fields) and it's speed. I would like
to work out the hourly average speed.

I have tired using the simple query wizard but I am battling. My biggest
problem is that I can't group the data hourly.

Any ideas?

  #9  
Old December 2nd, 2009, 01:02 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Hourly Averages

It kind of depends on whether you want the average each day and each hour (7 x
24 averages) or just for each hour in the week (24 averages)

You can group by
Hour([YourTimeField])
and by
WeekDay([YourDateField])

If you want the average per hour by day group by both expressions.
If you want the average per hour regardless of the day group by just the first
expression.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

~~NRH~~ wrote:
I am new to Access and I am currently using the 2003 version.

I have imported a database from Excel. It consists of the record of every
vehicle passing a survey location for a week (~60000 vehicles). Each record
contains the date and time (in seperate fields) and it's speed. I would like
to work out the hourly average speed.

I have tired using the simple query wizard but I am battling. My biggest
problem is that I can't group the data hourly.

Any ideas?

  #10  
Old December 2nd, 2009, 01:02 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Hourly Averages

It kind of depends on whether you want the average each day and each hour (7 x
24 averages) or just for each hour in the week (24 averages)

You can group by
Hour([YourTimeField])
and by
WeekDay([YourDateField])

If you want the average per hour by day group by both expressions.
If you want the average per hour regardless of the day group by just the first
expression.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

~~NRH~~ wrote:
I am new to Access and I am currently using the 2003 version.

I have imported a database from Excel. It consists of the record of every
vehicle passing a survey location for a week (~60000 vehicles). Each record
contains the date and time (in seperate fields) and it's speed. I would like
to work out the hourly average speed.

I have tired using the simple query wizard but I am battling. My biggest
problem is that I can't group the data hourly.

Any ideas?

 




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 11:42 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.