简体   繁体   English

公式中的单元格编号

[英]Cell number from formula

To start off im not very experienced with excel, and also on google i could not find any info relating this question. 首先,我不是对Excel非常有经验的人,也是在Google上,我找不到与该问题有关的任何信息。 Hopefully anyone here will know a smart way for this: 希望这里的任何人都会知道一个聪明的方法:

In excel when you want the content from a cell into another cell you can just do (for example in A1) =C1 在excel中,当您希望将一个单元格中的内容放入另一个单元格中时(例如,在A1中)= C1

But in my case i need the following: (line 1) In cell A1 i need the value from C12 (line 2) in cell A2 i need the value from C24 (line 3) in cell A3 i need the value from C36 .. and so on. 但是在我的情况下,我需要以下几点:(第1行)在单元格A1中,我需要在单元格A2中来自C12(第2行)的值,我需要在单元格A3中,从C24(第3行)中的值,我需要来自C36的值。等等。

So for Each Ax the cell i need is C(x*12) 所以对于每个轴,我需要的单元格是C(x * 12)

it looks like doing something like =C(10+2) is not possible in Excel. 在Excel中似乎无法执行= C(10 + 2)之类的操作。 So i wonder, is there a smart way of doing this? 所以我想知道,有没有一种聪明的方式做到这一点? i cant seem to find it. 我似乎找不到它。

Two options (starting in A1): 两个选项(从A1开始):

=INDIRECT("C"&ROW()*12)

or 要么

=INDEX($C:$C,ROW()*12)

The latter is faster (as non-volatile) in large datasets, the former is more flexible... 后者在大型数据集中速度更快(作为非易失性数据),前者更灵活...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM