Finding and Highlight a row based on a string of text within a cell

andyk

Board Regular
Joined
Feb 20, 2005
Messages
77
Hi

I have 2 documents,

document A holds a list of colleagues within a department.
document B holds a finance report

within document B there is a cell that contains the surname of the colleague in-between some codes

For Example Cell A5 will house 45675-655B-Smith-76434

Im looking for a solution that would automate ( or as close as possible ) the process of searching through the text string in Cell A5 against the list of colleagues within Document A and highlighting the matches

Is this possible and if so any help would be appreciated
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi

Do you have just the surnames of the colleagues in a distinct column in Document A?

If so, you can use a MATCH formula to indicate matches:

=ISNUMBER(MATCH("*" & A5 & "*",'[Document A]Sheet1'!A:A,0)) somewhere in Doc B and copy down for the number of rows you have. All the TRUEs returned will indicate a matc (assumes the surnames alone are in col A of Sheet1 in Document A).
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top