Average value from month, year and product nested (index,match)

wolthers

New Member
Joined
Sep 2, 2015
Messages
18
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hey guys,

I am trying to make a project where I have a spreadsheet with 3 sheets:
database with 3 column: A = date, B=Product, C = Price like this:
ABC
1Sales date (tbl_date)Product (tbl_product)Price (tbl_price)
2January 5, 201017/18 FC+20
3January 6, 201017/18 FC+18

<tbody>
</tbody>


Sheet 2 (chart) where I want the formula, I can manualy change year on B2, select quality on dropbdown list which is being taken from defined name on sheet 3, and results from C2 through E#.
ABCDE
1Year201217/18 FCdropdown 2dropdown 3
21January19 (for instance)Avg resultAvg result
32FebruaryAvg resultAvg resultAvg result

<tbody>
</tbody>

Sheet 3 (qualities) = unique names of all products for the dropdown list.

I am trying to get the average price of X product sold on month and year, at the moment I was only able to get the price of the product on the day with the formula:
select_all_icon.jpg
page_white_copy.png

<code style="margin: 0px; padding: 0px; font-style: inherit; line-height: 12px;">=AVERAGE((MONTH(tbl_date)=$A2)*(YEAR(tbl_date)=$B$1)*(tbl_product=C$1)*tbl_price)</code>

I don't really get the average sale of that product, but a very different number, - I guess it's the average of this to the whole table... can someone please help?

Attached is a example of the sheet.

Appreciate any help, not sure if I can upload the excel or not, but I tried to explain my problem as detailed as I could :)

PS: A PivotTable would not work so well, I have over 50 products, and it would be an enormous thing, and I want to be able to check price of one product with another and make a easy chart :)
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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