View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default location of cell

You could try the pivot table approach to create Top 5 lists per country.

owl527 wrote:
Hi, this is similiar to what I am looking for, HOWEVER, I guess mine is
a bit more complicated because I have an extra column. e.g.
Column 1 - Countries (HK, US, UK)
Column 2 - Products (Banana, Apple, Orange, Grapes, Carrot, Potato,
Tomato)
Column 3 - values (numbers)

I would like to sort the top 5 product Per country.

Sample end result:
HK
Banana 240
Apple 137
Tomato 122
Orange 82
Apple 23

Please help! thanks!!!



--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.