部门每年有若干合同,如2021-001.xlsx。

每张表格内有若干内容,如,合同名称、合同额等。

现在需要一张总表,比如在单元格B2输入2021-001,就能在C2显示出“合同名称”,同理后面的合同类型、签约人等全部根据2021-001.xlsx内数据显示。目前已经实现了这个功能,但是需要把每个工作簿都打开才能调用,如何不打开就能调用,谢谢!
C2:=VLOOKUP(INDEX(C:C,1,0),INDIRECT("'["&$B2&".xlsx]Sheet1'!$A:$B"),2,FALSE)
