Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Conditionally format cell to turn red after lookup match

I have a blank column A and a second column B with different alpha-numeric
17-characters in cells B1 to B50000. These are vehicle VINs.
Now, when I enter a VIN in A1, I would like to find if this VIN is in
column B and, if it is, turn the A1 cell red.
Next, I would enter a new VIN in A2 and again, check to see if it is in
column B and, if so, turn A2 red. I would continue this data entry down in
column A for up to 700-1000 VINs. I'd expect maybe 3-4 matches after entering
about 1000 VINs in column A.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Conditionally format cell to turn red after lookup match

Use conditional formatting with a formula of

=ISNUMBER(MATCH(A1,B:B,0))

--
__________________________________
HTH

Bob

"Dan H." wrote in message
...
I have a blank column A and a second column B with different alpha-numeric
17-characters in cells B1 to B50000. These are vehicle VINs.
Now, when I enter a VIN in A1, I would like to find if this VIN is in
column B and, if it is, turn the A1 cell red.
Next, I would enter a new VIN in A2 and again, check to see if it is in
column B and, if so, turn A2 red. I would continue this data entry down in
column A for up to 700-1000 VINs. I'd expect maybe 3-4 matches after
entering
about 1000 VINs in column A.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Conditionally format cell to turn red after lookup match

Give this a try:

1. Highlight Column A
2. Format | Conditional Formating
3. In Condition 1, change to "Formula Is"
4. Enter =ISNUMBER(MATCH(A1,B:B,0)) as the formula
5. With the Format button, select the Patterns tab and use your Red Cell
shading

Hope this helps.
--
Cordell


"Dan H." wrote:

I have a blank column A and a second column B with different alpha-numeric
17-characters in cells B1 to B50000. These are vehicle VINs.
Now, when I enter a VIN in A1, I would like to find if this VIN is in
column B and, if it is, turn the A1 cell red.
Next, I would enter a new VIN in A2 and again, check to see if it is in
column B and, if so, turn A2 red. I would continue this data entry down in
column A for up to 700-1000 VINs. I'd expect maybe 3-4 matches after entering
about 1000 VINs in column A.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Conditionally format cell to turn red after lookup match

While it might be proper for pedagogical reasons when used for conditional
formatting the ISNUMBER part is not necessary. MATCH alone will suffice, it
seems like any number will be the equivalent of TRUE and an error would be
the equivalent of FALSE.

--


Regards,


Peo Sjoblom

"Bob Phillips" wrote in message
...
Use conditional formatting with a formula of

=ISNUMBER(MATCH(A1,B:B,0))

--
__________________________________
HTH

Bob

"Dan H." wrote in message
...
I have a blank column A and a second column B with different alpha-numeric
17-characters in cells B1 to B50000. These are vehicle VINs.
Now, when I enter a VIN in A1, I would like to find if this VIN is in
column B and, if it is, turn the A1 cell red.
Next, I would enter a new VIN in A2 and again, check to see if it is in
column B and, if so, turn A2 red. I would continue this data entry down
in
column A for up to 700-1000 VINs. I'd expect maybe 3-4 matches after
entering
about 1000 VINs in column A.





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Conditionally format cell to turn red after lookup match

Thanks folks! That worked perfectly.
In real life I'll have about 100,000 VINS in the lookup column.

"Peo Sjoblom" wrote:

While it might be proper for pedagogical reasons when used for conditional
formatting the ISNUMBER part is not necessary. MATCH alone will suffice, it
seems like any number will be the equivalent of TRUE and an error would be
the equivalent of FALSE.

--


Regards,


Peo Sjoblom

"Bob Phillips" wrote in message
...
Use conditional formatting with a formula of

=ISNUMBER(MATCH(A1,B:B,0))

--
__________________________________
HTH

Bob

"Dan H." wrote in message
...
I have a blank column A and a second column B with different alpha-numeric
17-characters in cells B1 to B50000. These are vehicle VINs.
Now, when I enter a VIN in A1, I would like to find if this VIN is in
column B and, if it is, turn the A1 cell red.
Next, I would enter a new VIN in A2 and again, check to see if it is in
column B and, if so, turn A2 red. I would continue this data entry down
in
column A for up to 700-1000 VINs. I'd expect maybe 3-4 matches after
entering
about 1000 VINs in column A.








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Conditionally format cell to turn red after lookup match

I know that is so Peo, but I don't see it documented anywhere, so I would
rather be safe than trust MS to ensure it is always so

--
__________________________________
HTH

Bob

"Peo Sjoblom" wrote in message
...
While it might be proper for pedagogical reasons when used for conditional
formatting the ISNUMBER part is not necessary. MATCH alone will suffice,
it seems like any number will be the equivalent of TRUE and an error would
be the equivalent of FALSE.

--


Regards,


Peo Sjoblom

"Bob Phillips" wrote in message
...
Use conditional formatting with a formula of

=ISNUMBER(MATCH(A1,B:B,0))

--
__________________________________
HTH

Bob

"Dan H." wrote in message
...
I have a blank column A and a second column B with different
alpha-numeric
17-characters in cells B1 to B50000. These are vehicle VINs.
Now, when I enter a VIN in A1, I would like to find if this VIN is in
column B and, if it is, turn the A1 cell red.
Next, I would enter a new VIN in A2 and again, check to see if it is in
column B and, if so, turn A2 red. I would continue this data entry down
in
column A for up to 700-1000 VINs. I'd expect maybe 3-4 matches after
entering
about 1000 VINs in column A.







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I conditionally format only some of the text in a cell? Goo Excel Worksheet Functions 9 April 9th 10 07:55 PM
how can I conditionally format a cell Part 2 aquigley Excel Discussion (Misc queries) 2 November 29th 07 05:17 PM
How to conditionally format entire row from contents of one cell? MaryatSHO Excel Discussion (Misc queries) 1 September 11th 06 07:31 PM
multiple condition lookup and match cell format CJ at home Excel Worksheet Functions 3 August 27th 06 03:56 PM
Conditionally format one cell for contents of another? Basher Bates Excel Worksheet Functions 2 May 6th 06 07:39 PM


All times are GMT +1. The time now is 04:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"