Reporting top 5 values - duplicates causing issues

Fishboy

Well-known Member
Joined
Feb 13, 2015
Messages
4,267
Hi all,

In Excel 2010 I have a table of information containing sales of items. On anther tab within the document I am creating a dashboard with an overview of the main information people want to know. In the 'Sales Sheet' data table I am reading from I am interested in the following columns:

C = Item Name
E = Current Value

I have tried creating a Top 5 table to show which 5 items currently have the highest value and have been using the following formula in cell C1 of my dashboard as indicated below:

= LARGE('Sales Sheet'!$E$5:$E$380,A1)

A​
B​
C​
1​
ITEM 1​
600​
2​
ITEM 1​
600​
3​
ITEM 1​
600​
4​
ITEM 1​
600​
5​
ITEM 2​
590​

<tbody>
</tbody>

The formula checks 'Sales Sheet', looks through E5:E380 for values and returns the highest value (as indicated by the 1 in cell A1). When this is copied down from C1:C5 it looks for the 2nd, 3rd, 4th and 5th highest respectively.

In cell B1 of my dashboard I have the following formula designed to look at the top 5 table then return with the corresponding item name from column C of the 'Sales Sheet' data table:

=INDEX('Sales Sheet'!$C$5:$C$380,MATCH(C1,'Sales Sheet'!$E$5:$E$380,0))

Now, in the 'Sales Sheet' data table I am aware that there are currently 4 items all worth the maximum value of 600, and I have no problem that they are listed in ranks 1-4. My issue is with the INDEX:MATCH formula only returning the same item name for the top 4 spots in the rank table.

How do I amend my formula so that it corresponds to the 2nd, 3rd, 4th and 5th highest values and returns with the correct items instead of the first item it finds over and over again?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
As I have had no replies, if anyone is interested I managed to resolve the issue with the following formula:

=INDEX('Sales Sheet'!$C$5:$C$380,SMALL(IF('Sales Sheet'!$E$5:$E$380=$E17,ROW('Sales Sheet'!$C$5:$C$380)-ROW('Sales Sheet'!$C$5)+1),COUNTIF($E$10:$E17,$E17)))
 
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,308
Members
449,218
Latest member
Excel Master

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