I\'m trying to perform somethign similar to an excel index match in SQL.
I have a matrix looking like the below:
Matrix in excel: