# Sorting range of data using fomular

#### Stevekent

##### Board Regular
I have six columns from A1 to F1 of values that with 1st column in number from 1 to 5 but not in ascending order. The second until six columns contain word or value. As the data are copied and paste from another source, instead of using Data, and click on the A to Z, I want to have sorting formula in say H1 to M1 so that when I paste, the data is ascending order. Please see below of what I mean. Thanks a lot

 4 LGB12 TH 5.5 1 2 1 LGB12 TV 6.6 1 3 1 LGB12 TV 6.6 1 3 2 LGB12 TH1 4.35 2 1 2 LGB12 TH1 4.35 2 1 3 LGB12 TH 4.7 3 1 5 LGB12 D 7.3 2 1 4 LGB12 TH 5.5 1 2 3 LGB12 TH 4.7 3 1 5 LGB12 D 7.3 2 1

<tbody>
</tbody>

<tbody>
</tbody>

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Put in H1 and copied down:
=SMALL(\$A\$1:\$A\$5,ROWS(\$A\$1:A1))

Put in I1 and copied down and cross:
=INDEX(B\$1:B\$5,MATCH(\$H1,\$A\$1:\$A\$5,0))

Replies
7
Views
277
Replies
5
Views
202
Replies
1
Views
256
Replies
6
Views
399
Replies
5
Views
272

1,219,941
Messages
6,151,086
Members
451,007
Latest member
gianmatt

### 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.

### Which adblocker are you using?

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

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