Searching text in a cell range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi there,

i have a problem with Excel. can anyone tell me how can I search a text of
cell in sheet2 in the cell range of sheet1.

suppose that the data in cell A5 of Sheet2 is Scott, and on Sheet1 coulmn D
have a list of names, how can I find the Scott in this case. Also I clear one
thing the list of names are unique there is no duplications in it. so there
will be one and only one Scott.
 
I want to change the color of found text in Sheet1. Like if A name "Scott" is
founded in Sheet1 then its color in sheet 1 will be RED
 
1. Select A5 on Sheet2.
2. Give it a name (Ctrl+F3) like "myname" (no quotes).
3. Select col. D of Sheet1.
4. Go to Format > Conditional Formatting
5. Select "Formula Is" and put:
=COUNTIF($D1,"*"&myname&"*")
6. Press the Format button and format as desired.

HTH
Jason
Atlanta, GA
 
Sorry but it is not working. OK Look at this if it could be

Sheet1 have 2000 names list, and sheet2 contains 877 names of sheet1. I want
the rest names in sheet one deleted which are not in Sheet2.

can it be
 
Hi
- define a name for D1:D100 on sheet 1 (menu 'Insert - Name - Define). e.g.
call this name 'sourcelist'
- select A5 on sheet 2
- goto 'Format - Conditional Format'
- enter the following formula
=COUNTIF(sourcelist,A5)
- choose your format
 
thanks Frank Kabel thanks man it realy very helpful for me. you helps a lot.
thanks again.

Saddat Sarfraz
Saadi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top