D
DJo
Hi,
I have a spreadsheet showing the name of a product followed by how much it will sell for in each location. In another column I have a flag, either 0 or 1 to indicate that the product can be purchased from that location. The buy and sell prices are equal (no profit).
I want to find out what the average sell price for each product is. Here is how my spreadsheet is layed out:
-----------
Product A Location Sells Product B Location Sells
Location 1 200 0 150 1
Location 2 100 1 300 0
Location 3 300 1 150 0
0 = No
1 = Yes
-------------------
This is how I propose to find the average sell price:
Product Price multiplied by Sell Flag (for location 1, 2 and 3)
Add them all up
Divide by the sum of Location Sells column
200 * 0 = 0
100 * 1 = 100
300 * 1 = 300
--------------------
Sum of = 400
400 / (0 + 1 + 1) = 200
So the average sell price is 200.
Now is there a way to automate this? I don't want to create ANOTHER set of columns (there are a lot of products)
Thanking you in advance.
Iain
P.S. I have no idea how to use Access
I have a spreadsheet showing the name of a product followed by how much it will sell for in each location. In another column I have a flag, either 0 or 1 to indicate that the product can be purchased from that location. The buy and sell prices are equal (no profit).
I want to find out what the average sell price for each product is. Here is how my spreadsheet is layed out:
-----------
Product A Location Sells Product B Location Sells
Location 1 200 0 150 1
Location 2 100 1 300 0
Location 3 300 1 150 0
0 = No
1 = Yes
-------------------
This is how I propose to find the average sell price:
Product Price multiplied by Sell Flag (for location 1, 2 and 3)
Add them all up
Divide by the sum of Location Sells column
200 * 0 = 0
100 * 1 = 100
300 * 1 = 300
--------------------
Sum of = 400
400 / (0 + 1 + 1) = 200
So the average sell price is 200.
Now is there a way to automate this? I don't want to create ANOTHER set of columns (there are a lot of products)
Thanking you in advance.
Iain
P.S. I have no idea how to use Access
