but now struggle to return the values in efficient way.
dogs | cats | fish | |
boys | 7 | 6 | 5 |
girls | 9 | 11 | 2 |
men | 3 | 10 | 12 |
women | 17 | 7 | 5 |
boys | cats | 6 | =INDEX(1:5,MATCH(A8,A1:A5,0),MATCH(B8,1:1,0)) |
C with no eyes: Beautiful solution. Learned something new.
You are right with no need to number columns. I still though return their position to optimize runtime of index and not calculate everytime (the second match).