View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick Bernie Deitrick is offline
external usenet poster
 
Posts: 5,441
Default EXCEL: find string in vector & return cell reference

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


"Audit Compliance Man" wrote in message
...
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.