View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Using OR and If function

Say your numbers are in column A. In another column enter:

=IF(OR(A1={200000,300000,400000}),"yes","no") and copy down

(based upon a suggestion from Harlan Grove)
--
Gary's Student


"Wannano" wrote:

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!

--
Texas Wannano