=IF(ISNA(MATCH(Z2,$W$2:$W$10,0)),1,INDEX($W$2:$X$10,MATCH(Z2,$W$2:$W$10,0),2))
this worked for me.... thanks.

so is it impossible to have more than 8 statements in an if function?