Rank a List 1-10 only if it it meet a certain criteria

Kele

Board Regular
Joined
May 21, 2008
Messages
64
Hi,

I have a list of city that i update weekly to see the revenue that being spent in those city. What i would like is to rank the top 10 city's in my list by week.

I know i could do a pivot table but i would like to not use one as I am on a PC and other users are on a mac and it has problems.

I have a macro that updates weekly but pulls in the current years data, I then have a weekly summary sheet that I would like to pull in only the top 10 city for that week.

I am sure this is just a Rank(IF but I can get it to work :(

A B C D​
[TABLE="width: 286"]
<tbody>[TR]
[TD="align: center"]city[/TD]
[TD="align: center"]week[/TD]
[TD="align: center"]Revenue[/TD]
[TD="align: center"]Rank[/TD]
[/TR]
[TR]
[TD="align: center"]Aberdeen[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]145[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]Aberdeen[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]24[/TD]
[TD="align: center"]6[/TD]
[/TR]
[TR]
[TD="align: center"]Basildon[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]27[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]Basingstoke[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]18[/TD]
[TD="align: center"]7[/TD]
[/TR]
[TR]
[TD="align: center"]Bath[/TD]
[TD="align: center"]30[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD="align: center"]Bath[/TD]
[TD="align: center"]32[/TD]
[TD="align: center"]89[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]Birmingham[/TD]
[TD="align: center"]32[/TD]
[TD="align: center"]181[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Birmingham[/TD]
[TD="align: center"]32[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]9[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
 
Do you need the revenue for each city summed when there is more than one value for a given week no.?

See if this helps for starters, Ranking is by Revenue and in the case of equal revenues, 1/Row Number is used as a tie-breaker.
DragD2:E2 and H2:I2 down as required.

Enter your Week No in E2
Excel Workbook
ABCDEFGHI
1CityWeek NoRevenueFilter for week >32RankCityRevenue
2Aberdeen30145  1Birmingham181
3Aberdeen30242Bath89
4Basildon30273Birmingham5
5Basingstoke30184
6Bath30135
7Bath328989.14285726
8Birmingham32181181.12500017
9Birmingham3255.11111138
109
1110
Sheet1
 
Upvote 0
This will sum multiple entries for any city in any week no.

Excel Workbook
ABCDEFGHIJ
1CityWeek NoRevenueSum DuplicatesFilter for week >32RankCityRevenue
2Aberdeen30145   1Birmingham186
3Aberdeen30241692Bath89
4Basildon3027273
5Basingstoke3018184
6Bath3013135
7Bath32898989.14285726
8Birmingham321817
9Birmingham325186186.11111118
109
1110
Sheet1 (2)
 
Upvote 0

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