在Excel中使用命名范围,选择单元格? [英] Using Named Ranges in Excel with a selection of cells?
问题描述
在Excel中可以使用定义的命名范围,例如 myArray
指的是 = summary_data!$ C $ 2:$ H $ 6
Is it possible in Excel to use a defined named range such as myArray
refers to =summary_data!$C$2:$H$6
然后在另一张表中使用此名称将数据的内容粘贴到给定的范围 = summary_data!$ C $ 2:$ H $ 6
Then use this name in another sheet to paste the contents of the data to a given range =summary_data!$C$2:$H$6
这样做的原因是我正在注入数据到模板中的其他工作表中,前面板从许多工作表中获取数据。
The reason to do this is that I am injecting data into other sheets in a template and the front sheet takes the data from many sheets.
目前,我可以使用以下单个单元格进行此操作,但是定义每个单独的单元格乏味:
Currently I can do this with single cells using the following but defining each individual cell is tedious:
= INDIRECT('&&!&summary_data_C2)
一个名称设置为summary_data_C2,一个V1包含工作表名称。
=INDIRECT("'" &V1& "'!" & "summary_data_C2")
a name is set to summary_data_C2 an V1 contains the worksheet name.
推荐答案
是的,如果您突出显示其他工作表中的相应范围并输入
Yes, if you highlight the corresponding range in the other sheet and enter
=myArray
作为使用 Ctrl Shift <的数组公式/ kbd> 输入,它将为每个单元格设置一个到原始工作表的链接。
as an array formula using CtrlShiftEnter it will set up a link to the original sheet for each cell.
这篇关于在Excel中使用命名范围,选择单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!