Getting avgerage in Access Query

cegbuna

New Member
Joined
Mar 26, 2011
Messages
37
I am having troubles calculating Averages using Access Query. Here is what am trying to do.

<table style="width: 210px; height: 136px;" border="0" cellpadding="0" cellspacing="0"><colgroup><col style="width:48pt" width="64" span="2"> </colgroup><tbody><tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;width:48pt" width="64" height="20">Name</td> <td class="xl63" style="border-left:none;width:48pt" width="64">Data</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;border-top:none" height="20">Name 1</td> <td class="xl63" style="border-top:none;border-left:none">Num 1</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;border-top:none" height="20">Name 1</td> <td class="xl63" style="border-top:none;border-left:none">Num 2</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;border-top:none" height="20">Name 1</td> <td class="xl63" style="border-top:none;border-left:none">Num 3</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;border-top:none" height="20">Name 1</td> <td class="xl63" style="border-top:none;border-left:none">Num 4</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;border-top:none" height="20">Average =</td> <td class="xl64" style="border-top:none;border-left:none"> ?</td> </tr> </tbody></table>
How do I create a query to calculate the average of Num 1 to Num 4 and have the result inserted in a column?

As always, thanks for the help
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Take a look at Aggregate (Totals) Queries in Access's built-in help files. You will want to group it by Name, and take the average of the Data field (Average is one of the options for the Aggregate function).
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,345
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top