"If" and "or" function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Hi
in C2 enter
=IF(OR(A2={100,200,300,400,500,820}),B2*2,"not defined")
 
One way:

in cell C2:

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

Regards

Trevor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top