1: '=if(d4="",0,if(d4="hol",0,if(d4="mu",0,if(d4="max",0,if(d4="off list",0,if(d4="rdo",8,
2: if(d4="10list", (averageifs($b4:$p4,$b$3:$p$3,"ot w",$b$2:$p$2,"12",$b4:$p4,">2.00")-$b4),
3: if(or(d4={"ref","otdt"},and($b$2:$p$2,"12",$b$3:$p$3,"ot w",">2.00")), (averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00")-$b4),
4: if(or(d4={"ref","otdt"},and($b$2:$p$2,"10",$b$3:$p$3,"ot w",">2.00")), (averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00")-$b4),
5: if(or(d4={"ref","otdt"},and($b$2:$p$2,"12",$b$3:$p$3,"ot w","<=2.00")),(averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b$3:$p$3,"ot w",$b4:$p4,"<=2.00")-$b4),
6: if(or(d4={"ref","otdt"},and($b$2:$p$2,"10",$b$3:$p$3,"ot w","<=2.00")),(averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b$3:$p$3,"ot w",$b4:$p4,"<=2.00")-$b4),
7: if(or(d4={"lv","sc"}, and($b$2:$p$2,"12",$b$3:$p$3,"ot w",">2.00")), averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00"),
8: if(or(d4={"lv","sc"}, and($b$2:$p$2,"10",$b$3:$p$3,"ot w",">2.00")), averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">2.00"),
9: if(or(d4={"lv","sc"}, and($b$2:$p$2,"12",$b$3:$p$3,"ot w","<=2.00")), averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b4:$p4,"<2.01"),
10: if(or(d4={"lv","sc"}, and($b$2:$p$2,"10",$b$3:$p$3,"ot w","<=2.00")), averageifs($b4:$p4,$b$3:$p$3,"ot w",$b4:$p4,">0.17",$b4:$p4,"<2.01"),0)))))))))))))))
Looking at your formula it seems that if the code is not 10LIST you don't want to distinguish between the 10's and 12's.
Bookmarks