In this article, you will learn how to sort the data by columns. If you have multiple columns in your excel sheet and you want to arrange the order of the columns according to your requirement then you can use this trick.
Let’s say we have below given Using Data Sorting
Using Data Sorting.
![Using Data Sorting](https://www.pk-anexcelexpert.com/wp-content/uploads/2019/07/Sort-by-Columns-1.jpg)
Now we want the arrange the columns according to our requirements.
- Insert a row above headers and put the numbers for each header.
![Insert row and put column numbers](https://www.pk-anexcelexpert.com/wp-content/uploads/2019/07/Sort-by-Columns-2.jpg)
- Select the entire data.
- Go to Data tab click on Sort.
- The below-given window will be opened.
![Sort window](https://www.pk-anexcelexpert.com/wp-content/uploads/2019/07/Sort-by-Columns-3.jpg)
- Click on the Options button.
- Sort Options window will be opened.
- Select the option “Sort left to right”
- Click on OK.
![Sort Options window](https://www.pk-anexcelexpert.com/wp-content/uploads/2019/07/Sort-by-Columns-4.jpg)
- Select Sort by Row 1
- Click on OK.
![Sort Window](https://www.pk-anexcelexpert.com/wp-content/uploads/2019/07/Sort-by-Columns-5.jpg)
Your columns will be re-arranged Now you can remove the first row.
![Columns re-arranged](https://www.pk-anexcelexpert.com/wp-content/uploads/2019/07/Sort-by-Columns-6.jpg)
Using the same method, you can arrange the column by Cell colors or custom list also.
![Sort by Cell background color](https://www.pk-anexcelexpert.com/wp-content/uploads/2019/07/Sort-by-Columns-7.jpg)
Click here to download the Practice file-
Watch the step by step video tutorial:
Visit our YouTube channel to learn step-by-step video tutorials