JeffGrant
Well-known Member
- Joined
- Apr 7, 2021
- Messages
- 558
- Office Version
- 365
- Platform
- Windows
Hi All,
Thank you in advance for the support of this forum.
I have a range where each row needs to be individually sorted, then the range headers returned.
In this range:
1. The first group of columns, 1-4, is the raw data.
2. The second group of 4 columns, 5-8, is the sorted raw data from max to min. Because each row is sorted indivually, I have used the Large function in each cell to do the sort.
if anybody has a better suggestion, how to this, I would welcome some ideas.
3. The third group of 4 columns, 9-12, I used Index/Match to return the columns headers of columns 1-4.
No problem so far.
where the issue pops up is that Index/Match will only return the first occurance. It is highly likely that I will get repeated values in the raw data.
If I use a complicated IF or LET function I may be able to return the 2nd ,3rd, 4th values appropriatly, but I do not believe that is the best way to go.
Columns 13 -16, is the expected results that should appear in columns 9 - 12.
PS, I did try to use the xl2bb to make this a bit easier to read, and give the equations, b ut my PC kept hanging. Sorry.
All suggestions are very much appreciated.
Thank you in advance for the support of this forum.
I have a range where each row needs to be individually sorted, then the range headers returned.
In this range:
1. The first group of columns, 1-4, is the raw data.
2. The second group of 4 columns, 5-8, is the sorted raw data from max to min. Because each row is sorted indivually, I have used the Large function in each cell to do the sort.
if anybody has a better suggestion, how to this, I would welcome some ideas.
3. The third group of 4 columns, 9-12, I used Index/Match to return the columns headers of columns 1-4.
No problem so far.
where the issue pops up is that Index/Match will only return the first occurance. It is highly likely that I will get repeated values in the raw data.
If I use a complicated IF or LET function I may be able to return the 2nd ,3rd, 4th values appropriatly, but I do not believe that is the best way to go.
Columns 13 -16, is the expected results that should appear in columns 9 - 12.
PS, I did try to use the xl2bb to make this a bit easier to read, and give the equations, b ut my PC kept hanging. Sorry.
All suggestions are very much appreciated.
Firm | Good | Soft | Heavy | Sorted Places | Sorted Conditions | Should Be | |||||||||
0 | 6 | 2 | 1 | 6 | 2 | 1 | 0 | Good | Soft | Heavy | Firm | ||||
0 | 2 | 4 | 3 | 4 | 3 | 2 | 0 | Soft | Heavy | Good | Firm | ||||
0 | 1 | 5 | 3 | 5 | 3 | 1 | 0 | Soft | Heavy | Good | Firm | ||||
0 | 8 | 1 | 0 | 8 | 1 | 0 | 0 | Good | Soft | Firm | Firm | ||||
0 | 1 | 6 | 2 | 6 | 2 | 1 | 0 | Soft | Heavy | Good | Firm | ||||
0 | 5 | 3 | 2 | 5 | 3 | 2 | 0 | Good | Soft | Heavy | Firm | ||||
0 | 3 | 4 | 3 | 4 | 3 | 3 | 0 | Soft | Good | Good | Firm | Soft | Good | Heavy | Firm |
0 | 2 | 5 | 3 | 5 | 3 | 2 | 0 | Soft | Heavy | Good | Firm | ||||
0 | 4 | 4 | 1 | 4 | 4 | 1 | 0 | Good | Good | Heavy | Firm | Good | Soft | Heavy | Firm |
0 | 0 | 4 | 2 | 4 | 2 | 0 | 0 | Soft | Heavy | Firm | Firm | ||||
0 | 3 | 4 | 3 | 4 | 3 | 3 | 0 | Soft | Good | Good | Firm | Soft | Good | Heavy | Firm |
0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | Soft | Firm | Firm | Firm | Good | Firm | Good | Heavy |
0 | 6 | 4 | 0 | 6 | 4 | 0 | 0 | Good | Soft | Firm | Firm | Good | Soft | Firm | Heavy |
0 | 10 | 8 | 2 | 10 | 8 | 2 | 0 | Good | Soft | Heavy | Firm | ||||
0 | 6 | 2 | 2 | 6 | 2 | 2 | 0 | Good | Soft | Soft | Firm | Good | Soft | Heavy | Firm |
0 | 2 | 0 | 0 | 2 | 0 | 0 | 0 | Good | Firm | Firm | Firm | Good | Firm | Soft | Heavy |
0 | 2 | 0 | 2 | 2 | 2 | 0 | 0 | Good | Good | Firm | Firm | Good | Soft | Firm | Heavy |
0 | 1 | 2 | 0 | 2 | 1 | 0 | 0 | Soft | Good | Firm | Firm | Soft | Good | Firm | Heavy |
0 | 0 | 2 | 1 | 2 | 1 | 0 | 0 | Soft | Heavy | Firm | Firm | Soft | Heavy | Firm | Good |