looking for a number in array

  • Thread starter Thread starter arturo.cohen
  • Start date Start date
A

arturo.cohen

I Would like to make a cell change its color when the number entered
does not mach any of the numbers in a specified array of numbers (which
is in a separate sheet - sheet3 -- ) .

I used Vlookup to serch in the array, and used conditional formating
(when cell value not equal to..) but when the number is not in the
list, the cell still doesnt change its colors even when the another
cell is #N/A

How can i workaround of this?
 
I put my list in B1:B5 and my cell with conditional formatting in A1.

I used this formula in the Conditional Formatting formula:
=COUNTIF(B1:B5,A1)=0

Since your list is in a different worksheet, you'll have to name that list
range.

Insert|Name|Define

and the formula will be more like:
=Countif(myList,a1)=0
 
wow, Dave, really, thanks for the help, i thought it was a little more
complicated, but seems like it isnt. thanks so much for the help,
worked perfect!!

Arturo Cohen
 

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