Hi
See if is this you want
I use a sheet S_1 for helpers and S_2 for Results
Your matrix is in S_1!K1:O5
I used the following formula to find which decimal number has 3 values 1 in binary
and use the formula
to get the array {7;11;13;14;19;21;22;25;26;28}
Columns DEF has the following formula that gives the position of 1 in binary number to define lines and columns to use
and Columns GHI
The two following formulas are in S_2 Sheet to gives you the result (first three columns are rows elements, and the others are columns elements)
Your example are in row S_2!2289
See the file for clarification
Bookmarks