Hi very sorry shouldhave been as follows
initial if =
=IF(AND(Input!A26<>"",Input!B26="Yes"),IF(Input!$G$8="OPTIMIZED",Codelist!A9,IF(Input!$G$6="Quality",Codelist!A9,IF(Input!$G$7="WFM",Codelist!A51,Codelist!A9))),"")
and the OR I need to add needs to be as follows...