I have somewhere in my worksheet a cell containing a specific text (for exemple "hello") and I want to know which cell is it. I want to know the reference of this cell (for exemple "B52").
I tried some things with the INDEX or MATCH formula but I'm quite confused about how should I do for this kind of query.
It would be great if someone could give some tips.
Thank's in advance !
Try this small macro:
EDIT#1
Here is the same approach in User Defined Function (UDF) format:
and here is an example of its use in the worksheet:
EDIT#2
It is possible to lookup a value in two dimensions without VBA
say we have data like:
In K1 enter:
hello
In K2 enter the array formula
In K3 enter the array formula
In K4 enter:
K2 gives the column, K3 gives the row, and K4 gives the address of the cell ($E$11)
Array formulas must be entered with Ctrl + Shift + Enter rather than just the Enter key.