Finding top 3 products with highest sales and specific criteria

ryan8200

Active Member
Joined
Aug 21, 2011
Messages
357
Hi All,
I would like to return top 3 products with highest sales in specified region and weight.
Eg: Result in North region and product with weight 1kg

Here are the data
ProductsRegionWeightSales
BananaNorth1kg
114​
AppleNorth1kg
241​
OrangeNorth1kg
127​
CarrotNorth1kg
210​
LimeNorth1kg
143​
BananaCentre2kg
200​
AppleCentre2kg
260​
OrangeCentre2kg
240​
CarrotCentre2kg
209​
LimeCentre2kg
183​
BananaSouth3kg
210​
AppleSouth3kg
186​
OrangeSouth3kg
132​
CarrotSouth3kg
100​
LimeSouth3kg
267​

The expected outcome will be

Products
Apple
Carrot
Orange
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
The expected outcome will be

Products
Apple
Carrot
Orange
Must be Apple, Carrot, Lime? Lime is 143 which is more than Orange??

Excel Formula:
=INDEX($A$2:$A$16,MATCH(1,(D$2:$D$16=LARGE(($B$2:$B$16="North")*($C$2:$C$16="1kg")*$D$2:$D$16,ROWS($A$1:A1)))*($B$2:$B$16="North")*($C$2:$C$16="1kg"),0))
This is an array formula. You must press Ctrl+Shift+Enter together after paste.
1681459253725.png
 
Last edited by a moderator:
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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