Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Ranking based on sum across multiple locations

I'm trying to get the top ten ranking locations based on the sum of
the sales. The real list is 1000s of entries so here is an example of
what it looks like:

Location # Sales
1 10
2 20
2 10
2 30
3 50
4 200
4 10
5 20
6 10
6 100
6 20
7 10

The end result would look like this:
4 210
6 130
2 60
3 50
5 20
1 10
7 10

How do I do this in a systematic way with a formula? Thanks for your
help in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Ranking based on sum across multiple locations

One way

The assumes your locations in Column A
sales in column B

Put another list of locations somewhere, in this case I used column C
starting in C1 then this formula in D1

=SUMPRODUCT(($A$1:$A$12=C1)*($B$1:$B$12))

Drag down to the same length as column C The select columns C & D and sort
on D descending

Mike

Drag this

"Ryan" wrote:

I'm trying to get the top ten ranking locations based on the sum of
the sales. The real list is 1000s of entries so here is an example of
what it looks like:

Location # Sales
1 10
2 20
2 10
2 30
3 50
4 200
4 10
5 20
6 10
6 100
6 20
7 10

The end result would look like this:
4 210
6 130
2 60
3 50
5 20
1 10
7 10

How do I do this in a systematic way with a formula? Thanks for your
help in advance.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save document to multiple locations Bob[_13_] New Users to Excel 1 January 19th 08 08:29 PM
save to multiple locations simultaneously MOSwannabe Excel Discussion (Misc queries) 1 October 29th 07 07:00 PM
AutoFill pattern based on cell locations valoo Excel Discussion (Misc queries) 4 July 28th 06 09:39 PM
Ranking based on two columns sa02000 Excel Worksheet Functions 2 April 17th 06 06:10 PM
How do I advance filter to multiple locations at once? imills Excel Worksheet Functions 3 February 1st 06 06:12 PM


All times are GMT +1. The time now is 04:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"