Try something like this:
=IF(OR(A2="apple",A2="oranges"),1,2)
Is that something you can work with?