Sorting more than 3 columns

earbrows

New Member
Joined
Apr 18, 2002
Messages
3
I would like to create a macro to sort columns A:F in a range of A3:F400 in ascending order.( "A" in ascending order then "B"in ascending order then "C" etc.) When I try the Excel sort it only does 3 columns. ( when record the sort as a Macro and try to add more columns it doesn't work). At this point I either need to by hand reselect the range to exclude the already sorted cells or figure out a macro to run. I would appreciate any help as I am sure you have seen this problem before. Also, I have found some great stuff in your site, but searching through the maze of questions for this answer has proved very frustrating. Thanks again.
This message was edited by Earbrows on 2002-04-19 10:39
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi
you should let your macro sort on D, E and F in first run.
In second run sort on A, B and C.
This way the whole range is sorted correct.

regards Tommy
 
Upvote 0
Not exactly what I was looking for, but a very nice and simple solution anyway.

Thank you very much.
 
Upvote 0
do you mean by A3:F400, that you wnat to sort so A1>a400, and A400>b1 and B1>b400 etc, or do you just want each column sorted within itself?
 
Upvote 0
sorry for repeat posting ..
suffering from Friday Fingers :oops:
This message was edited by Big Blue on 2002-04-19 11:38
 
Upvote 0
The information in each Column from A to F needs to be sorted aplhabetically and bring all the data on that row with it. The columns beyond the sorted cells has the data I need. Thank you.
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,089
Members
448,548
Latest member
harryls

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