Try this formula in F2 (copy down)...

=INDEX($A$1:$D$1, 1,MATCH(E2,A2:D2,0))