Rank Only Groups with Same Characteristic

wzxchange

New Member
Joined
Jan 21, 2012
Messages
17
Good morning,

I've been trying to figure this out for a while, but haven't been able to find any resources. Thought you guys will be able to help me solve this.

I would like to create a spreadsheet that creates kind of a leaderboard based on geography. To illustrate:

Tab 1:
  • Drop down menu with locations (e.g.: Texas Market, Arizona Market, California Market)
  • Data flows into tab based on vlookup to menu (i.e.: Column B = revenues, Column C = cost of goods sold)
  • More importantly, 5 Most Profitable Customers and 5 Least Profitable Customers

Tab 2:
  • Data in the following order (Customer Name, Market, Revenues, COGS, Gross Margin, Rank) - approximately 10,000 rows

Currently, I'm using a rather manual custom sort option to get the customers to line up in order of market, before using the RANK function in excel to sort by gross margin. However, I'm wondering if there's an "IF" statement of some sort where I can create a "RANK customer based on Gross Margin among peers with same Market".

Any help will be greatly appreciated. Thank you very much!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,216,067
Messages
6,128,590
Members
449,460
Latest member
jgharbawi

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