Ascending order formula.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
In row A1:J1 I have the numbers from 0 to 9 . Then below, in row 3 as example I have 7-6-2-1-18-13-3-5-55-271 which are reference to row 1.Now what I need if possible is to rearrange row 1 in an ascending order according of row 3.See the way it should be in L3:U3.

And row 4 as 2nd example.Thank you in advance for any help.


Excel Workbook
ABCDEFGHIJKLMNOPQRSTUV
10123456789
2
37621181335552713267105489
43312141110329132763854190
5
Sheet2
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Formula in L3: =INDEX($A$1:$J$1,MATCH(SMALL($A3:$J3,COLUMN(A$1)),$A3:$J3,0))
(copy down and across as far as required)
 
Upvote 0
njimack,

Beautiful, it work perfectly the way I needed it, and you did it in a record time.

Thank you very much.

Serge.
 
Upvote 0
Villy,

It start at 3 because :

3 in row 1 is at 1 in row 3 then 2 in row 1 is at 2 in row 3 and 6 in row 1 is at 3 in row 3 etc... etc...
 
Upvote 0
Villy,

It start at 3 because :

3 in row 1 is at 1 in row 3 then 2 in row 1 is at 2 in row 3 and 6 in row 1 is at 3 in row 3 etc... etc...
OK sorry my bad I misunderstood the explanation.
Ok then great job by njimack...
 
Upvote 0
njimack,

I have a small problem, just because in my example the data are in A1:J1 and A3:J3 and the formula in L3.

My reel data are not in those cells that was just a sample, I tried to adjust the formula to my reel data and I can't make it work !!!

If you can help me ?

Here are the reel data cells :

0:9 are in : Y1 : AH1

data are in : Y6844 : AH6844

And the formula should start in cell : FV6844.

Sorry about that.

Thank you.
 
Upvote 0
I would suggest a slight change to Neil's formula to make it more robust. At the moment, if you add a new column A for some reason, the results will go astray. A simple change would stop that problem.

Try changing the red bits:

L3 Neil: =INDEX($A$1:$J$1,MATCH(SMALL($A3:$J3,COLUMN(A$1)),$A3:$J3,0))
L3 Peter: =INDEX($A$1:$J$1,MATCH(SMALL($A3:$J3,COLUMNS($L3:L3)),$A3:$J3,0))
 
Upvote 0
Here are the reel data cells :

0:9 are in : Y1 : AH1

data are in : Y6844 : AH6844

And the formula should start in cell : FV6844.
My formula adjusted for that:

Excel Workbook
YZAAABACADAEAFAGAHAIAJFUFVFWFXFYFZGAGBGCGDGE
10123456789
2
6843
68447621181335552713267105489
68453312141110329132763854190
Order
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

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