Reference another workbook with dynamic worksheet name

前端 未结 2 777
野性不改
野性不改 2021-01-27 03:36

I want to reference another workbook and a specific worksheet which is dependent on some cell values.

This equation works

=\'S:\\Down Time[11-Nov_2013_Downtime T

2条回答
  •  臣服心动
    2021-01-27 03:47

    If you want to do this only by excel formulas, you could modify you formula like this:

    =INDIRECT("'S:\Down Time[11-" & A1 & "_2013_Downtime Tracker.xls]" & A2 & "'!$F$12)
    

    In this example it is assumed that the nov-value is in cell A1 and the 30-value is in cell A2. This formula, however, will only work if the referenced workbooks are open. Otherwise the formula would return a #REF! error. Only alternative would be to use VBA.

提交回复
热议问题