Here is the situation:
I have
Table Z (5x5 matrix where each ; indicates a new row)
A,B,C,D,E; F,G,H,I,J; K,L,M,N,O; P,Q,R,S,T; U,V,W,X,Y
My inputs are F K P U and my column headers are A B C D E
if you are familiar with vhlookup, the original equation can look like this...