"If" and "or" function

P

plumstone

If A2=100, or 200 or 300 or 400 or 500 or 820, Then let C2=B2*2
How can I write this formula?
Thanks.
 
T

Trevor Shuttleworth

One way:

in cell C2:

=IF(OR(A2=100,A2=200,A2=300,A2=400,A2=500,A2=820),B2*2,"")

Regards

Trevor
 
Top