简体   繁体   中英

Excel Worksheet reference in formula

I'm currently working on a workbook which has a 52 worksheets, 1 for week of the year. I'm trying to make a worksheet that i can use as a quick-check for each of the worksheets. I'm wondering if there's a way of having just 1 worksheet pull data in from each of the other sheets ? or do i have to create one for every week individually ?

For example,

instead of individual sheets with a load of '=VLOOKUP(B3,'WEEK 12'!$A$4:$E$40,3,FALSE)' is there any i can have the formula use whichever worksheet name i have in say cell c1 ? like '=VLOOKUP(B3,' Cell C1 '!$A$4:$E$40,3,FALSE)'

Sorry for being a bit long winded, and hope you understand what i mean.

As you are now using a text representation of columns A and E, there is absolutely no need for the $ markers.

=vlookup(b3, indirect(text(c1, "'@'!\A\:\E")), 3, false)

Alternately, with just 12 in C1.

=vlookup(b3, indirect(text(c1, "'w\e\ek 0'!\A\:\E")), 3, false)

例如,如果C1可能包含WEEK 12

=VLOOKUP(B3,INDIRECT("'"&C1&"'!$A$4:$E$40"),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.

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