G
Guest
I need to calculate an average price for items in an order. For instance, a
typical order might look like...
15 @ 10
5 @ 7.5
In this case the average price is (15 * 10) + (5 * 7.5) / (10 + 5) = 9.375
I'm trying to duplicate this logic in a subform's footer. When I try it I
always get the entire row of footers turning into #Error. Here's what I
tried...
=(Sum([quantity*price])/Sum([quantity]))
Anyone know why this doesn't work? All the numbers are valid.
typical order might look like...
15 @ 10
5 @ 7.5
In this case the average price is (15 * 10) + (5 * 7.5) / (10 + 5) = 9.375
I'm trying to duplicate this logic in a subform's footer. When I try it I
always get the entire row of footers turning into #Error. Here's what I
tried...
=(Sum([quantity*price])/Sum([quantity]))
Anyone know why this doesn't work? All the numbers are valid.