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 positive and negative numbers separately in Excel?

Supposing a list contains multiple positive and negative values, generally, it will rank all values by the Rank function, but what I want is to rank the positive and negative numbers separately as below screenshot shown, have any quick tricks to handle this job in Excel?
doc rank positive negative 1

Rank positive values only

Rank negative values only

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 positive values only


To rank positive values only, you can apply below formula.

Select a blank cell next to the list you want to rank positive values only, type this formula =IF($A2>0,MATCH($A2,SMALL(IF($A$2:$A$16>0,$A$2:$A$16),ROW(INDIRECT("1:"&COUNTIF($A$2:$A$16,">0")))),0),"") and press Shift + Ctrl + Enter keys, then drag auto fill handle down to fill this formula to cells you need.
doc rank positive negative 2


arrow blue right bubble Rank negative values only

Rank negative values only, please do as follow:

Select a cell which will place the ranking number, type this formula =IF($A2<0,MATCH($A2,LARGE(IF($A$2:$A$16<0,$A$2:$A$16),ROW(INDIRECT("1:"&COUNTIF($A$2:$A$16,"<0")))),0),""), hold Shift + Ctrl, and press Enter key to get the correct result.
doc rank positive negative 3


You maybe interested in this:

Change Sige of Vlaues (quickly change negative to positive values, or vice versa...)

doc change sign


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.