Rearranging based upon value

sophos707

New Member
Joined
Dec 4, 2005
Messages
6
Hi!

I am wondering how I can enter a formula to display my cells in order, from lowest number to highest. But I also want the names to be pulled over...
For example:

A B
Car 5
Dog 20
Fun 2


How can I make, in column "D" a list of the names, and then values in order, so it would end up like this:

D E
Fun 2
Car 5
Dog 20
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Couldn't you just goto Data>Sort...?
 
Upvote 0
Well, the problem is that I need to maintain the columns A and B without any changes... I just need new columns with that data, sorted differently.

DATA>Sort will only rearrange the ones I have, right?
 
Upvote 0
Using a helper column it's quite easy.

In C1:

=RANK(B1,B:B,1)+COUNTIF(B1:B$1,B1)-1

In D1:

=INDEX(A:A,MATCH(ROW(),$C:$C,0))

In E1:

=INDEX(B:B,MATCH(ROW(),$C:$C,0))

Copied down as needed.
 
Upvote 0

Forum statistics

Threads
1,206,755
Messages
6,074,756
Members
446,083
Latest member
kfunt

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