EXCEL: find string in vector & return cell reference

  • Thread starter Audit Compliance Man
  • Start date

A

Audit Compliance Man

Need to search for a text string anywhere in a column on another sheet, and
return the cell reference of the first match found. Searched for text string
will be embedded within larger text.
Example: Find the text string "Joe" (contained in Sheet1, cell A2) within
the entire column G of text on Sheet2. When "Joe" is found in Sheet2 Column
G, row 365, return cell reference G365.
 
Ad

Advertisements

B

Bernie Deitrick

Mr. Audit Compliance Man,

=ADDRESS(MATCH("*" & Sheet1!A1 & "*",Sheet2!G:G,FALSE),COLUMN(Sheet2!G:G),4)

will return the cell address of the first instance.

HTH,
Bernie
MS Excel MVP
 

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

Top