find and list top 10 items in a table showing their row and column labels?

merlin777

Well-known Member
Joined
Aug 29, 2009
Messages
1,397
Office Version
  1. 2007
I have a table which summarises the number of sales of tshirts of each colour combination (its actually much bigger than this)

I'd like to show a list of the top 10 most popular colour combos so somehow i have to find the highest 10 values from these cells and display a list of them, in order, showing both colours and the number of sales they've had. I'm not sure how to go about this. Is there a function for this?


whiteblackredgreenblueyellowpinkgrey
white07000000
Ice Grey00000000
Sport Grey00000000
Vegas Gold00000000
Natural00000000
Sand03
000000
Daisy00000000
Safety Green00000000
Yellow Haze00000000
Gold00005000
Old Gold00000000

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

best sellers:
black on white - 7
blue on gold - 5
black on sand - 3
etc
 
I've just noticed something strange is going on.
Its not actually retrning the top number that is being asked for.
When i change the 10 (change to suit) to other numbers this is what i get

ask for top 1 and get a list of 1
2 gives 2
3 = 3
4 = 4
but 5 gives 9
6 = 9
7 = 9
8 = 9
9 = 9
then 10 gives 15
11 = 15

and so on.

?
Need to see the data that's producing those results. Most likely there are more than one of some of the combinations that have the same "score" - i.e. there are ties.
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I'm not near my pc but from what I remember that sounds likely.
Is there a way around it? Can we count up to 10 (or whatever) in another way?
 
Upvote 0
It's not actually that serious a problem for me because I'm linking to the top 10 results from a summary page so I won't see the overspill.
 
Upvote 0
It's not actually that serious a problem for me because I'm linking to the top 10 results from a summary page so I won't see the overspill.
Not sure I understand why you wouldn't want to see all the ties even if that required exceeding 10 items. Isn't it your objective to know all of the items that are selling well?
 
Upvote 0
If I ask for the top 10 and the macro displays 15 items including ties then when I look at the first 10 that will be the top 10 incuding ties in the 10 which is perfect.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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