# VSORT with sorting (Ascending-Descending)

#### Ali Kırksekiz

##### Board Regular
I did Data-Sort and macro but I can't do VSORT (more function)

I am having trouble getting VSORT to work I have to four columns

Number......Name............Lesson Code.............Mark
256...........Michael XX ..........TAM..................... 56
112...........Zeeman AA.........MAT...................... 78
657...........Bob FF................COG......................95

Sort ascending Number list/I want to like this

Number......Name............Lesson Code.............Mark
112...........Zeeman AA.........MAT...................... 78
256...........Michael XX ..........TAM..................... 56
657...........Bob FF................COG......................95

Sort ascending(alphabetical)Name list/I want to like this

Number......Name............Lesson Code.............Mark
657...........Bob FF................COG......................95
256...........Michael XX ..........TAM..................... 56
112...........Zeeman AA.........MAT...................... 78

Sort ascending (alphabetical)Lesson code list/I want to like this

Number......Name............Lesson Code.............Mark
657...........Bob FF................COG......................95
112...........Zeeman AA.........MAT...................... 78
256...........Michael XX ..........TAM..................... 56

Thanks for any help

### Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

#### Krishnakumar

##### Well-known Member
Hi,

Formula in F2 and copied down & across,

=INDEX(VSORT(\$A\$2:\$D\$5,\$A\$2:\$A\$5,1),ROWS(\$A\$2:\$A2),COLUMNS(\$F\$1:F\$1))

In F8,

=INDEX(VSORT(\$A\$2:\$D\$5,\$B\$2:\$B\$5,1),ROWS(\$A\$8:\$A8),COLUMNS(\$F\$1:F\$1))

In F14,

=INDEX(VSORT(\$A\$2:\$D\$5,\$C\$2:\$C\$5,1),ROWS(\$A\$8:\$A8),COLUMNS(\$F\$1:F\$1))

HTH

Replies
6
Views
256
Replies
1
Views
187
Replies
10
Views
290
Replies
3
Views
99
Replies
0
Views
103

1,141,757
Messages
5,708,340
Members
421,566
Latest member
7Nabisco

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