ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   dynamic cell number (https://www.excelbanter.com/excel-worksheet-functions/215986-dynamic-cell-number.html)

Dr. S[_2_]

dynamic cell number
 
copying and pasting a function down a column will increase the cell number by
one in each row (example =A1+6, and below: =A2+6 and below =A3+6 etc.) Is it
possible to make that calculation for every 4th row and list the results
directly in a column. Or asked differently is ther any way to increase the
cell number by a different value, by 4 for instance? (=A1+6 will be followed
by =A5+6 and then =A9+6.

Sheeloo[_3_]

dynamic cell number
 
One way is to enter this in row 1 (in any col other than A) and copy down

=INDIRECT("A" & (ROW()*4-3))-6

"Dr. S" wrote:

copying and pasting a function down a column will increase the cell number by
one in each row (example =A1+6, and below: =A2+6 and below =A3+6 etc.) Is it
possible to make that calculation for every 4th row and list the results
directly in a column. Or asked differently is ther any way to increase the
cell number by a different value, by 4 for instance? (=A1+6 will be followed
by =A5+6 and then =A9+6.


T. Valko

dynamic cell number
 
Here's a non-volatile method.

Assume you want the results to appear starting in cell D1.

Enter this formula in D1 an copy down as needed:

=INDEX(A:A,ROWS(D$1:D1)*4-3)+6

--
Biff
Microsoft Excel MVP


"Dr. S" wrote in message
...
copying and pasting a function down a column will increase the cell number
by
one in each row (example =A1+6, and below: =A2+6 and below =A3+6 etc.) Is
it
possible to make that calculation for every 4th row and list the results
directly in a column. Or asked differently is ther any way to increase the
cell number by a different value, by 4 for instance? (=A1+6 will be
followed
by =A5+6 and then =A9+6.





All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com