I don't know if you are committed to using LOOKUP / MATCH / TRANSPOSE, but this gets the job done. Reworked workbook is attached. I used the data supplied in your initial post to make the transpositions clearer to see.
This formula is an array-entered formula that must be committed to the whole pre-selected range at once ..... committed
by pressing and holding Ctrl + Shift while hitting Enter.
BTW: You can replace the hard coded {1;3;4;8;7} in that formula with a row-wise column of cells containing those designated column numbers. It makes the formula more flexible. For example:
Row\Col |
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
1 |
A |
B |
C |
D |
E |
F |
G |
H |
|
In A5:B12={=IF(ISERROR(INDEX($A$1:$H$2,{1,2},{1;3;4;8;7})),"",INDEX($A$1:$H$2,{1,2},{1;3;4;8;7}))} |
2 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
|
|
3 |
|
|
|
|
|
|
|
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
5 |
A |
1 |
|
|
|
|
|
|
|
|
6 |
C |
3 |
|
|
|
|
|
|
|
|
7 |
D |
4 |
|
|
|
|
|
|
|
|
8 |
H |
8 |
|
|
|
|
|
|
|
|
9 |
G |
7 |
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
|
|
|
11 |
|
|
|
|
|
|
|
|
|
|
12 |
|
|
|
|
|
|
|
|
|
|
Bookmarks