[英]Moving cell reference from another sheet by one without VBA
I've created a screenshot to explain what I'm searching for, it helps to understand my problem a lot better. 我创建了一个屏幕截图来解释我要搜索的内容,它有助于更好地理解我的问题。
What you see is "Sheet A". 您看到的是“ Sheet A”。 In the yellow field there's is a reference to "Sheet B" (something like ='Sheet B'!E8
). 在黄色字段中,有对“ Sheet B”的引用(类似于='Sheet B'!E8
)。 In the blue field I try to get the reference of the yellow field and add +4 to the row, so I'll get something like ='Sheet B'!I8
. 在蓝色字段中,我尝试获取黄色字段的引用,并在行中添加+4,这样我将得到类似='Sheet B'!I8
。 In the red field I try to get the reference of the yellow field and add +1 to the line, so I'll get something like ='Sheet B'!E9
. 在红色字段中,我尝试获取黄色字段的引用,并向该行添加+1,所以我会得到类似='Sheet B'!E9
。
The goal is to just copy and paste the data sets to the right and bottom, because I've got 44 data sets to the bottom and over 350 columns to the right. 目标是仅将数据集复制并粘贴到右侧和底部,因为我在底部有44个数据集,在右侧有350多个列。 The yellow cell functions like a mother cell and every other cell is a reference to it. 黄色单元格的功能类似于母细胞,其他所有单元格都对其进行引用。 I'd prefer a solution without VBA, so thanks a lot in advance. 我希望没有VBA的解决方案,所以在此先多谢。
You can use a combination of OFFSET(), ROW() and COLUMN(). 您可以结合使用OFFSET(),ROW()和COLUMN()。 Eg assuming the yellow cell is D4, you could put something like this into the yellow, red and blue cells: 例如,假设黄色单元格为D4,则可以在黄色,红色和蓝色单元格中放入以下内容:
=OFFSET('Sheet B'!$E$8, (ROW()-4)/6, 4*(COLUMN()-4))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.