query help

buggy2

Board Regular
Joined
Feb 28, 2003
Messages
69
I am looking to run a query on a table which will determine the weighted average of a field. The table is designed as follows:

Name | Amount | Rating


I am trying to calculate Sum((Amount*Rating)/Sum of Amount), but I keep on getting aggregate errors relating to 'Sum of Amount'. Any ideas.
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Philem

Active Member
Joined
Jan 2, 2003
Messages
282
Hullo. Let me see if I understand this correctly. What you have is, in effect:
Code:
Sum((A*R)/Sum of A)
Right? Here's hoping you have A calculated elsewhere. Try this instead:
Code:
Sum((A*R)/A)
and see if that gets you want you want.

HTH (y)

P
 

buggy2

Board Regular
Joined
Feb 28, 2003
Messages
69
thanks the sum piece was incorrect before this query.

It was one of the those monday morning :oops: things.

Thanks again.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,088
Messages
5,599,664
Members
414,325
Latest member
kfg1287

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
Top