Get column reference after string found

  • Thread starter Thread starter Les Stout
  • Start date Start date
L

Les Stout

Hi all, i need to find a string on a spreadsheet and once found i need
to get the column that it is in. Could anybody help me with some code
please ?
I have the find string code, i just need to know how to get the column
that the string is in.


Best regards,

Les Stout
 
Let's say you are searching for WW02 and/or WWO3, use this function:
=ADDRESS(MATCH("WW02",A1:A4,0),MATCH("WW03",A1:D1,0))

The items in quotes are the strings; you can use one or both (I think you
only need one for your purposes...)

Regards,
Ryan---
 
Showing the code would have been helpful. If that code is finding the Cell
(as a range) that the text is in, then just affix .Column (note the leading
dot) after that range to get the column.

Rick
 
Back
Top