Reputation: 27
I have this situation.
A1="Text I want" (A1 is the text i want)
X1="A1" (X1 is the cell of the text i want)
I now want Z1 to be the text of A1 using the reference provided by X1.
Ex: Z1=gettextofthiscell(X1)==>getvalueofthiscell(A1)=="Text I want"
What formula for Z1 would do something like this (without using VBA)?
Thank you.
Upvotes: 1
Views: 1622
Reputation: 12008
You need to use INDIRECT
Insert this function in Z1. The argument must be X1. Of course, X1 value must be A1
. Then the formula will read XI and get get the text of A1.
=INDIRECT(X1)
An example:
Upvotes: 3