简体   繁体   English

在没有VBA的情况下将单元格引用从另一张表格移动一个

[英]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. 我创建了一个屏幕截图来解释我要搜索的内容,它有助于更​​好地理解我的问题。

工作表A

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.

相关问题 VBA从工作表1中的单元格引用中选择另一个工作表 - VBA select another sheet from cell reference in sheet 1 VBA根据参考单元格中的匹配值将数据从一个范围移动到另一个图纸范围 - VBA move data from one range to another sheet range based on matching values in reference cell Excel VBA脚本,用于将数据从一张纸移动到另一张纸,而不会覆盖编译错误。 - Excel VBA Script for moving data from one sheet to another without overwriting compile errors. 在Excel VBA中将数据从一张纸移动到另一张纸而无需复制粘贴 - Moving data from one sheet to another without copy paste in Excel VBA 如何从Module-Excel VBA中的另一个工作表引用单元格? - How to reference cell from another sheet in Module - Excel VBA? 如何从 vba 中的另一个工作表中获取两个单元格引用 - How to take two cell reference from another sheet in vba 根据单元格值将数据从一张纸移动到另一张纸 - Moving Data from One Sheet to Another Based on Cell Value 在一个工作表中查找单元格文本,在另一工作表中查找,然后用vba偏移 - Find cell text from one worksheet, in another sheet, then offset with vba VBA按单元格将单元格从一张纸添加到另一张纸 - VBA Adding cells from one sheet to another by cell 一张纸上的时间戳来自另一个VBA Excel上更新的单元格 - Timestamp on one sheet from updated cell on another VBA excel
相关标签
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM