There are a few different ways to sort data in Excel, and which method you use will depend on the type of data you're working with. If you have a small amount of data, you can sort it manually by clicking the arrow next to the column header. This will open a drop-down menu with sorting options. You can also sort data automatically using the Sort & Filter tool. This is useful if you have a large amount of data or if you want to apply multiple levels of sorting.
To sort data automatically, first select the data you want to sort. Then click the Sort & Filter button on the Home tab. This will open the Sort dialog box. In the Sort By drop-down menu, select the column you want to sort by. Then choose how you want to sort the data from the Order drop-down menu. You can choose to sort in ascending or descending order, or by color or cell icon. If you want to apply multiple levels of sorting, click the Add Level button. This will add another row to the dialog box where you can select another column to sort by.
You can also use the Filter tool to filter your data so that only certain rows are displayed. This is useful if you have a large amount of data and you want to narrow it down to only what's relevant. To filter data, select the column you want to filter by and click the Filter button on the home tab. This will open the Filter dialog box. In this dialog box, you can choose what criteria to filter by and whether to filter in ascending or descending order.