maybe like this
custom list:
In Excel, you can perform a dependent custom sort list by creating multiple custom lists and using them in combination for sorting. Here are the steps:
- Create a list of values that you want to use as the primary sorting criteria in a separate column or worksheet.
- Create a list of values that you want to use as the secondary sorting criteria in a separate column or worksheet.
- Select the column of data that you want to sort.
- Click on the "Sort" button in the "Data" tab.
- In the "Sort" dialog box, select the column you want to sort by and then select "Custom List" from the "Order" drop-down list.
- Click on the "Import" button and select the range that contains the custom list you created in step 1.
- Click "Add Level" to add a second level of sorting criteria.
- Select the column you want to sort by for the second level of sorting and then select "Custom List" from the "Order" drop-down list.
- Click on the "Import" button and select the range that contains the custom list you created in step 2.
- Click "OK" to close the "Custom Lists" dialog box.
- Click "OK" again to close the "Sort" dialog box and sort your data.
- Excel will now sort the data based on your custom lists in the order you specified, with the primary sorting criteria taking precedence over the secondary criteria.
Note: You can add additional levels of sorting criteria by clicking "Add Level" and repeating steps 8 to 10.
Partner |
last |
Role |
|
|
last |
Role |
IF |
Partner |
1 |
bevill |
veteran |
|
|
bevill |
guardian |
1 |
1 |
1 |
bevill |
guardian |
|
|
bevill |
veteran |
1 |
1 |
6 |
Gabriel |
veteran |
|
|
Spencer |
guardian |
6 |
2 |
6 |
Spencer |
guardian |
|
|
Gabriel |
veteran |
6 |
2 |
3 |
Guerra |
veteran |
|
|
Guerra |
guardian |
3 |
3 |
3 |
Guerra |
guardian |
|
|
Guerra |
veteran |
3 |
3 |
2 |
jung |
veteran |
|
|
De Santis |
guardian |
2 |
4 |
2 |
De Santis |
guardian |
|
|
jung |
veteran |
2 |
4 |
4 |
Lerner |
veteran |
|
|
Lerner |
guardian |
4 |
5 |
4 |
Lerner |
guardian |
|
|
Lerner |
veteran |
4 |
5 |
5 |
Thaler |
veteran |
|
|
Lerner |
guardian |
5 |
6 |
5 |
Lerner |
guardian |
|
|
Thaler |
veteran |
5 |
6 |
|
|
|
|
|
|
|
|
|
expected |
|
|
|
|
result |
|
|
|
Bookmarks