=IF(C2="PRDIEM","800200",IF(OR(C2="PSNEOT",C2="PSCROT"),"800110",IF(OR(C2="PSNE1",C2="PSPR1",C2="PSPR2"),"800100")))
Select allOpen in new window
=IFERROR(VLOOKUP(C2,Sheet2!A:B,2,0),"")
Open in new window
Else create a Table in Sheet2 and do the vlookup with below formula:Open in new window