Excel Sorting a 2-Dimensional Array
Hi,
Try again!
=CHAR(LARGE(CODE($A$1:$C$5),COUNTA($A$1:$C$5)-(COLUMN()-COLUMN($E$1))-(ROW()-ROW($A$1))*COUNTA($A1:$C1)))
This does NOT remove the duplicates!
I think you may have to resort to VBA code to solve this.
" wrote:
Mr. Toppers,
Thank you for your response to my query.
I have attempted upon your suggestion of a solution and, after
array-entered the formula
{=CHAR(LARGE(CODE($A1:$C1),COUNTA(A1:$C1)))},
into every cell of the range E1:G5, the results appear to be as follows
:-
1. E1:G1 = A, C, E
2. E2:G2 = B, T, U
3. E3:G3 = C, O, P
4. E4:G4 = D, G, I
5. E5:G5 = E, F, L
6. And so, it's apparently a deviation from the desired results as
given below :-
7. E1:G1 = A, B, C
8. E2:G2 = C, D, E
9. E3:G3 = E, F, G
10. E4:G4 = I, L, O
11. E5:G5 = P, T, U
12. Please note that the general sorting (in alphabetical order) ought
to consider the group of entries in the range A1:C5 as a whole ;
instead of the piece-wise attempt (row-by-row) as portrayed by your
formula.
13. Regards.
|