简体   繁体   中英

Excel: Get cell value by referencing text of another cell (without using VBA)

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.

You need to use INDIRECT

INDIRECT function

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:

在此处输入图片说明

我相信您正在寻找间接函数:Z1 = Indirect(X1)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM