Using OR and If function

W

Wannano

I have a worksheet with 1000+ line and I need to write an if function to look
in one particular column to tell me if certain number are among the various
numbers listed in that column. Example:

Column contains account values from 100000 to 900000. In a new column, I
want to write an IF function to say YES if the number is 1 of 3 numbers
(200000, 300000 or 400000), otherwise NO.

I appreciate any assistance.

THANK YOU!
 
R

Roger Govier

Hi

Try
=IF(OR(A1=200000,A1=300000,A1=400000),"Yes","")
for the actual results of 200000,300000 and 400000

If, however, you wanted any numbers within the range of 200000 to 499999
then you would need
=IF(AND(A1>=200000,A1<500000),"Yes","")
 

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

Top