I think you can another column after L and use vlookup formula.

or maybe you can give an example the data you want to achieve.