简体   繁体   中英

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. 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

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.

So for Each Ax the cell i need is C(x*12)

it looks like doing something like =C(10+2) is not possible in Excel. So i wonder, is there a smart way of doing this? i cant seem to find it.

Two options (starting in 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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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