Dan in Germany
New Member
- Joined
- Jun 17, 2007
- Messages
- 29
I have a complicated sorting task. I have data for many different soil horizons as rows and the percent mineral composition as columns.
example:
horizon - Quarz - Feldspar - Smektite - Kaolinite - Vermiculite - Chlorite
1 - 80 - 5 - 0 - 14 - 1 - 0
2 - 20 - 20 - 35 - 0 - 20 - 15
3 - 30 - 0 - 15 - 35 - 0 - 20
The sum of all minerals is always 100% and in the spreadsheet I have 40-50 Minerals. I need to sort the minerals for every horizon based on their abundance. That is, for horizon 1, I would like to have the minerals sorted as such:Quarz - Kaolinite - Feldspar - Vermiculite - Chlorite - Smektite. Of course, I could individually sort every horizon by hand, but I have a huge dataset with thousands horizons. Is there a formula I can use to sort the horizons from the largest concentration to the lowest for each horizon? Or is there a way to use a "look up" funtion to list the Mineral name in the correct sorted order with the percent abundance?
Thanks for any help or tips!
Dan
example:
horizon - Quarz - Feldspar - Smektite - Kaolinite - Vermiculite - Chlorite
1 - 80 - 5 - 0 - 14 - 1 - 0
2 - 20 - 20 - 35 - 0 - 20 - 15
3 - 30 - 0 - 15 - 35 - 0 - 20
The sum of all minerals is always 100% and in the spreadsheet I have 40-50 Minerals. I need to sort the minerals for every horizon based on their abundance. That is, for horizon 1, I would like to have the minerals sorted as such:Quarz - Kaolinite - Feldspar - Vermiculite - Chlorite - Smektite. Of course, I could individually sort every horizon by hand, but I have a huge dataset with thousands horizons. Is there a formula I can use to sort the horizons from the largest concentration to the lowest for each horizon? Or is there a way to use a "look up" funtion to list the Mineral name in the correct sorted order with the percent abundance?
Thanks for any help or tips!
Dan