简体   繁体   中英

How do I dynamically choose an excel sheet to reference in a formula?

I have an xlsx with sheets named "A", "B", "C", etc. I need to form a table with the names "A", "B", "C" as the first column, and some data from the same cell in each sheet as the second column. So for example, this might look like:

   Sheet          Data
   A              =A!C2
   B              =B!C2

In my "Data" column, is there some way to reference the names "A" and "B" from the "Sheet" column, so I can just fill the forumla in once and have it update as I add more sheets?

假设工作表名称AA2 -在B2中使用它: =INDIRECT("'"&A2&"'!C2")

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