在Excel中自动复制
如果我有第一个三列的A列数据
A1 = 1
A2 = 2
A3 = 3
并在A4中将其拖放到4,A5 = 5等。
我想要做同样的事情,但从另一个工作簿连接。 如果我在A1 = 1从源='C:\用户\ chrast_m \桌面\Kalibrácia[001.xlsx]Hárok1'!$ AA $ 1
在A2 = 2,从源='C:\ Users \ chrast_m \ Desktop \Kalibrácia[002.xlsx]Hárok1'!$ AA $ 1
我拖动后,我想:
A1 = C:\ Users \ chrast_m \ Desktop \Kalibrácia[001.xlsx]Hárok1'!$ AA $ 1
A2 = C:\ Users \ chrast_m \ Desktop \Kalibrácia[002.xlsx]Hárok1'!$ AA $ 1
A3 = C:\ Users \ chrast_m \ Desktop \Kalibrácia[003.xlsx]Hárok1'!$ AA $ 1
A4 = C:\ Users \ chrast_m \ Desktop \Kalibrácia[004.xlsx]Hárok1'!$ AA $ 1
A5 =等
感谢您的帮助!
您可以使用INDIRECT
function来实现这一点。 在您的主电子表格中:
- 在单元格A1中input
'001
(撇号将停止将Excel转换为数字) - Enter
="C:\Users\chrast_m\Desktop\Kalibrácia[" & A1 & ".xlsx]Hárok1'!$AA$1"
- 在单元格C1中input
=INDIRECT(B1)
现在,如果select单元格A1:C1并将其向下拖动,则将创build对002.xlsx,003.xlsx等的引用