sort numbers in columns

cds

Board Regular
Joined
Mar 25, 2012
Messages
84
Hi, I am using excel 2003, I want to know how sort data in various columns in ascending or descending order. My data is like this :

a b c d e f
1 12 4 11 27 35 20
2 9 17 4 23 29 35
3 3 8 23 17 29 26

After sorting I want result like this :-


1 4 11 12 20 27 35
2 4 9 17 23 29 35
3 3 8 17 23 26 29

Thanks in advance


cds
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
In the Sort dialog click Options and check 'Sort left to right'. To get the result you want you will need to sort one row at a time.
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
You can use a formula in say H1 (or wherever you want) and filled right/down as needed
=SMALL($A1:$F1,COLUMNS($A1:A1))

Once you have the result, you can copy the formula cells, and paste special / values over the top of the original.

Excel Workbook
ABCDEFGHIJKLM
11241127352041112202735
291742329354917232935
338231729263817232629
Sheet1
 

Watch MrExcel Video

Forum statistics

Threads
1,122,689
Messages
5,597,559
Members
414,156
Latest member
WDMix

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
Top