I wanted to get the cell from one sheet based on cell value in other sheet
eg.
2 sheets : x,y
I want cell value from sheet "y" and its cell is "A" and column value of "A" depend on sheet x and cell B1
eg. y!A(x!$B1+1)
However,y!A gets evaluated first and I get error.
Can anyone suggest solution ?
This formula should do it:
=INDIRECT("y!r1c"&x!B1, FALSE)
This assumes x!B1 holds the column as a number
y!A(x!$B1+1)
You can use INDIRECT like Dave mentioned
y is the Sheet
A is the column
(x!$B1+1) is the row
However since you want to pickup the row part and not the column part, Dave's formula needs to be written as
=INDIRECT("y!r"&(x!B1+1)&"c1", FALSE)
Alternatively you can use OFFSET
=OFFSET(y!A1,x!B1,0)
No need to Add +1
Offset will take care of that.
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.