OR Operator

  • Thread starter Thread starter Freddy
  • Start date Start date
F

Freddy

I would like to inspect the value of Column C for many rows of a worksheet.

If column C's value does not equal 5506, 6879 or 7553, then Column C's value
should be displayed in Column D. If it does equal 5506, 6879 or 7553, then
Column D should display nothing.

Column D's formula should be something like:

=IFC1<>{5506,6879,7553},C1,"")

But this does not work, as only 5506 gets evaluated. How do I get the other
numbers to be included in the comparison? Is an OR operator required i.e.
5506 OR 6879 OR 7553

Thanks in advance for any assistance.
 
=IF(OR(C1={5506,6879,7553}),C1,"")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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