简体   繁体   中英

Compare two columns and highlight when found -

Excel compare two columns and highlight when found

I have tried the various suggestions using conditional formatting however, when I compare 1,000 lines of Data in column A to 8,000 lines of Data in column N, some of my cells will come back formatted (showing a match) but other cell that contain the identical number in the 2 columns do not format as showing a match .

I'm comparing Part numbers and some of the numbers do contain letters; however, I have formatted both columns as a "General" format, thinking that one columns part number is not formatted the same as the other column's part number.

No matter which example I use, they both come back with an identical part numbers not being found in column "N", but the part # is actually in both column A & N. I test by doing a Cntrl Find and the part # is found in both columns, but will not come back formatted identifying it as such. I've tried:

=NOT(ISNA(VLOOKUP(A1,$N:$N,1,FALSE))) 

and

=COUNTIF($N:$N,A1)

请尝试选择ColumnN,使用公式确定要格式化的单元格/在此公式为真的情况下格式化值:

=--COUNTIF(A:A,N1)  

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM