Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Find Data Problem

Status
Not open for further replies.

Hakala

Technical User
Apr 26, 2006
144
US
Hi, Tek-tippers! I've been asked if I can create "a button or something" to allow our tech writer to check a long Excel file. He wants to know:

Is any of the text in cell A1 in any cell in Column B?
Is any of the text in cell A2 in any cell in Column B?

and so on. So I guess he's looking for duplications between Column A and Column B.

I haven't a clue how to do this. Excel's find feature (Ctrl-f) is too manual, so it takes too long.

Any ideas out there?


Michelle Hakala
 


Hi,

How about AutoFilter, using a CONTAINS criteria?

Skip,
[sub]
[glasses] When a group touring the Crest Toothpaste factory got caught in a large cooler, headlines read...
Tooth Company Freeze a Crowd! and
Many are Cold, but Few are Frozen![tongue][/sub]
 
or:

Code:
=MATCH("*"&$A1&"*",B:B,0)

Cheers,

Roel
 
Hi Michelle,

Enter this formula in an adjacent column (C for example), and copy down.

=IF(COUNTIF(B:B,A1),A1,"")

It will test the value in column A, and if it exists anywhere in column B, it will show the value (in column C). And if the value does not exist in column B, the formula will show blank.

Hope this helps. ;-)

Regards, Dale Watson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top