![]() |
EXCEL function;find string in entire column & return cell referenc
I need a function to search an entire column on another sheet (K:K) for a
text string that returns the first cell reference (K34) that contains the string. Then I can use VLOOKUP to get a second value contained in, say, B34 |
Answer: EXCEL function;find string in entire column & return cell referenc
Sure, I can help you with that!
You can use the MATCH function in Excel to find the first occurrence of a text string in a column and return its cell reference. Here's how you can do it:
The MATCH function will search for the text string in the entire column K of the specified sheet and return the row number of the first cell that contains the text string. To get the cell reference, you can concatenate the row number with the column letter "K" using the ADDRESS function. Here's how:
The ADDRESS function will convert the row number returned by the MATCH function into a cell reference, using the column letter "K". The result will be the cell reference of the first occurrence of the text string in column K of the specified sheet. Once you have the cell reference, you can use VLOOKUP or any other function to retrieve the value in another column of the same row. For example, to retrieve the value in column B of the same row, you can use the following formula: Formula:
|
EXCEL function;find string in entire column & return cell referenc
Assuming your data in Sheet2 spans to 1000 rows.. try the below
The below will return the row =MATCH("*" & A1 & "*",Sheet2!K1:K1000,0) Then you can use INDEX() to return the value from B =INDEX(sHEET2!b1:b1000,MATCH("*" & A1 & "*",Sheet2!K1:K1000,0)) If this post helps click Yes --------------- Jacob Skaria "Audit Compliance Man" wrote: I need a function to search an entire column on another sheet (K:K) for a text string that returns the first cell reference (K34) that contains the string. Then I can use VLOOKUP to get a second value contained in, say, B34 |
All times are GMT +1. The time now is 06:26 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com