Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to rank values excluding subtotal in Excel?

There is a range which contains the stores, regions, sales and the subtotal of sales in each region. Now the job is to rank all sales excluding subtotal as below screenshot shown, how can you quickly handle it in Excel?
doc rank exclude subtotal 1

Rank excluding subtotal

Enable you to do smarter, faster and better

Kutools - the best office productivity tool brings 300 advanced features to Excel. Details... Download...

Office Tab - brings tabbed interface to Excel and Word, make your work much easier. Details...Download...


arrow blue right bubble Rank excluding subtotal


To rank values excluding subtotal, you need a helper column.

1. Select a blank cell next to the value you want to rank, type 1 into it, then drag auto fill handle down to fill series numbers until meeting the subtotal value. see screenshot:
doc rank exclude subtotal 2

2. Then go to the next value you want to rank to continue filling the series numbers, and repeat this step to fill all values you want to rank with series numbers. See screenshot:
doc rank exclude subtotal 3

3. Then you can rank the values excluding subtotals. Select a blank cell, E2, type this formula, =IF(N(D2),RANK(C2,$C$2:$C$16,1),"") (C2 is the cell that you want to rank, D2 is the series number, C2:C16 is the list of values you want to rank), and then drag fill handle down to the cells which need to apply this formula. See screenshot:
doc rank exclude subtotal 4

Note:

If you want to rank values in descending order, you can use this formula=IF(N(E2),RANK(E2,$E$2:$E$16),""), E2:E16 is the range contains the formula =IF(N(D2),RANK(C2,$C$2:$C$16,1),"").
doc rank exclude subtotal 5



Excel Productivity Tools

Kutools for Excel - The Best Office Productivity Tool

  • Brings 300 powerful advanced features to Excel, enable you to do smarter, faster and better.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Office Tab - brings tabbed interface to Office, make your work much easier.

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.