I defined a range with a name Christmas2016
with data in a worksheet named Raw
.
The range contains 3 rows with the first columns being Announcement
, Last Chance
, and Final Hours
.
In another sheet named Summary
, I have a two cells with the following values -
B2
contains Announcement
B3
contains Christmas2016
I want to run the VLOOKUP
function - VLOOKUP(B2, Christmas2016, 3, FALSE)
. This, of course, executes fine. However, I want to replace the hard-coded name Christmas2016
and use the value in the cell B3
.
I tried -
VLOOKUP(B2, B3, 3, FALSE)
VLOOKUP(B2, &B3, 3, FALSE)
None of these work. Is there a way to use names in the formulas that are stored as cell values.
这正是INDIRECT函数的用途。
=VLOOKUP(B2, INDIRECT(B3), 3, FALSE)
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.