It's difficult to make it completely flexible, but as long as the header rows are always in row 7 on the green tabs and the codes are always in column A, you could use something like this:
=INDEX(SafeDelivery!$A:$R,MATCH($B8,SafeDelivery!$A:$A,0),MATCH(C$7,SafeDelivery!$7:$7,0))