There is no automatic way of knowing the codes: for S16 how would Excl know to use "ESH" : column B has GRP and there is nothing in Q16 relating to either B or C.