Ranking spreadsheet

marino3d

New Member
Joined
Apr 12, 2011
Messages
9
Hi,

I have a spreadsheet with 2 columns of data. Column A contains thousands of zipcodes. Column B contains a value for each zipcode that can be denoted as 1000,2000,3000 all the way up to 18000. What I need to find out is what is the top 3 zipcodes in total wealth. Here is some sample data to illustrate this:

10001 2000
10001 5000
10001 3000
10001 6000
10002 12000
10002 5000
10003 18000

So in this example 10001 would be last place with a total worth of 16000,
10002 would be 2nd with 17000 and 10003 would be 1st with 18000. In the real spreadsheet though there would be thousands of zipcodes and I'm only interested in the top 3 total value. Any ideas?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,

Probably the easiest way would be a pivot table using zip code as a row label and the monetary values under values in the PT.

You would be able to sum the data and get an instant answer.

Reagrds,
Ian
 
Upvote 0
Hi,

Probably the easiest way would be a pivot table using zip code as a row label and the monetary values under values in the PT.

You would be able to sum the data and get an instant answer.

Reagrds,
Ian

That did it. Never used a pivot table before but that helped. Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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