ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   EXCEL Conditional Formatting (https://www.excelbanter.com/excel-discussion-misc-queries/234411-excel-conditional-formatting.html)

Hank

EXCEL Conditional Formatting
 
I have two columns of numbers. One small set (25-200, imported daily) of
numbers in column B, and 8365 unique numbers in column K. I would like to
use conditional formatting to tell me if any of the numbers imported into
column B match any of the 8365 unique numbers in column K. If so, I would
like the numbers in column B that match to turn Red.

Bernie Deitrick

EXCEL Conditional Formatting
 
HANK,

Use CF with the Formula Is option, with a formula like

=NOT(ISERROR(MATCH(B2,K:K,False)))

where B2 is the activecell at the time that you apply the formatting.

And if the empty cells are turning red and your want to prevent that....

=AND(B2<"",NOT(ISERROR(MATCH(B2,K:K,False))))

HTH,
Bernie
MS Excel MVP


"HANK" wrote in message
...
I have two columns of numbers. One small set (25-200, imported daily) of
numbers in column B, and 8365 unique numbers in column K. I would like to
use conditional formatting to tell me if any of the numbers imported into
column B match any of the 8365 unique numbers in column K. If so, I would
like the numbers in column B that match to turn Red.




T. Valko

EXCEL Conditional Formatting
 
Try this...

Select the range of cells. Assume this range is B2:B201
Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the box on the right:
=MATCH(B2,K$2:K$8366,0)
Click the Format button
Select the desired style(s)
OK out

--
Biff
Microsoft Excel MVP


"HANK" wrote in message
...
I have two columns of numbers. One small set (25-200, imported daily) of
numbers in column B, and 8365 unique numbers in column K. I would like to
use conditional formatting to tell me if any of the numbers imported into
column B match any of the 8365 unique numbers in column K. If so, I would
like the numbers in column B that match to turn Red.




Max

EXCEL Conditional Formatting
 
One way

Select col B (B1 active),
apply CF using Formula Is:
=COUNTIF($K:$K,B1)
Format to taste ok out

Yes? Pl click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"HANK" wrote:
I have two columns of numbers. One small set (25-200, imported daily) of
numbers in column B, and 8365 unique numbers in column K. I would like to
use conditional formatting to tell me if any of the numbers imported into
column B match any of the 8365 unique numbers in column K. If so, I would
like the numbers in column B that match to turn Red.



All times are GMT +1. The time now is 10:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com