![]() |
Get column reference after string found
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 *** Sent via Developersdex http://www.developersdex.com *** |
Get column reference after string found
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--- -- RyGuy "Les Stout" wrote: 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 *** Sent via Developersdex http://www.developersdex.com *** |
Get column reference after string found
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 "Les Stout" wrote in message ... 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 *** Sent via Developersdex http://www.developersdex.com *** |
Get column reference after string found
Perfect Rick thank you so much.
Best regards, Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
All times are GMT +1. The time now is 12:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com