简体   繁体   中英

Excel - Part of file name from cell

I'm looking for a way to make something like ='[X"&A1&".xlsx]Z'!$A3 I have 2 files. File X.xlxs collecting data from multiple files Y.xlxs, files Y.xlxs are named Y1.xlxs, Y2.xlxs, ..., Y1210.xlxs.

I tried INDIRECT and "&&" .

I'm looking for simple way to get data from specific cell in specific file Y.xlxs. In file XI puted into cell A1 - An part of filename 1 - n.

to get data from specific cell in specific file Y.xlxs

will need: =INDIRECT("[Y"&A1&".xlsx]Sheet1,$A$3",TRUE)

just as @Andreas said.

anyway.. a quick reference to indirect() function documentation will help in its understanding.

Please share if it works/not. (:

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