Hi all,
First post here so please be gentle. Self taught excel guru, finding limits and googling my way past them
However, I haven't been able to find a solution to this one (or perhaps I am over complicating it) I know what I need to do but not quite sure how:
So I have a sheet called `Data`, which has multiple criteria in the following layout (its bigger than this - about 13k lines - but that gives you the idea):
A_____________B_________C
product code___category___sales
ABC123456_____Fruit______34
ABC432342_____Fruit______3
MEA123456_____Meat_____22
MEA432342_____Meat_____19
Currently, I use the following formula on another sheet, in column B, to list the top 20 selling products from the data sheet:
A B
1 =INDEX(Data!$1:$1048576,MATCH(LARGE(Data!$C:$C,$A1),Data!$C:$C,0),1)
2 =INDEX(Data!$1:$1048576,MATCH(LARGE(Data!$C:$C,$A2),Data!$C:$C,0),1)
3 =INDEX(Data!$1:$1048576,MATCH(LARGE(Data!$C:$C,$A3),Data!$C:$C,0),1)
4 =INDEX(Data!$1:$1048576,MATCH(LARGE(Data!$C:$C,$A4),Data!$C:$C,0),1)
etc
This works perfectly in giving me the overall top 20 - however - I want to now be able to produce a top 20 by product category (column B) on the data tab...
In my head the formula is the same as the above, but with another criteria applied to only search in the specified product category.
Any ideas?
Many thanks!
Bookmarks