I am trying to compare a barcode to a list (column) in Excel. I've found ways to compare a column to column but I haven't found how to compare one string to an entire column.
Trying to verify that we don't have redundant barcodes.
I got the FIND command to work.
Thanks!
I also was able to get the EXACT command to work. The only problem I have is I would like the answer in 1 cell only. For example, if the code in A1 matched any of the codes in B1:B6000 then C1 would be TRUE or 1.
I am using that cell(answer) in some VB for a different machine.
Then you should use COUNTIF, for example:
=(COUNTIF($B$1:$B$6000,A1)>0)
COUNTIF gives you the number of occurrences in the range B1:B6000 where the value equals A1. If it is greater than 0, the boolean expression evaluates to TRUE.
Cheers,
Joerd
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.