Sorting with formulas

litrelord

Well-known Member
Joined
Dec 1, 2002
Messages
519
Is there any way of sorting data from one range into another so it fills the second range. I tried using RANK with some lookups but then I have problems if I have more than one item with the same value (and therefore the same rank number).

Any ideas?

Thanks

Nick
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
As an example, I have

Mike
Dave
Tom
Bob

In column A and column B has test results pulled from individual sheets (e.g. 20%, 40%, 10%, 5%)

I want to have these cells hidden but have a similar table underneath which shows the same names but in the order of the test results.

It was working fine until two came back with identical % marks and then the INDEX/MATCH combination I was using to pull the name based on the rank column returned the same name for both of them (the first one it found). I’m trying to find a way round this.

Can’t use HTML maker at work I’m afraid otherwise I’d mock something up which would make it clearer.

Nick

EDIT: Just remembered - It has to be automatic updating so I can't use sort and I can't use macros because people will leave them switched off and moan when it doesn't work :roll:
 
Upvote 0
Perhaps something like this?
Book1
ABCD
1Mike203
2Dave401
3Tom104
4Bob402
5
6
7
8Dave
9Bob
10Mike
11Tom
12
Sheet1


The bottom part is the sorted list.

If you want largest to smallest just change SMALL to LARGE in the sort formula.
 
Upvote 0
Looks good my man. I shall try it out first thing tomorrow - provided I don't melt on the way home!

Thanks

Nick
 
Upvote 0

Forum statistics

Threads
1,222,737
Messages
6,167,903
Members
452,155
Latest member
Prakash K

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