I am trying to copy selected data in every 6th cell in one row(A6) on
sheet2 and put it into a single column(A) on sheet one.
One interp / way ..
Assuming data below is in row6 in Sheet2 (in A1:R1)
1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6
Put in any starting cell in Sheet1, say B2:
=OFFSET(Sheet2!$A$6,0,ROWS($A$1:A1)*6-6+5)
Copy B2 down until zeros appear, signalling exhaustion of data
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"hlckom" wrote in message
...
I am trying to copy selected data in every 6th cell in one row(A6) on
sheet2 and put it into a single column(A) on sheet one.
So:
becomes
6
6
6
I created the following function to do this.
=OFFSET(SHEET2!$A$6,0,(6*COUNTA(("A6:A"&((CELL("ro w"))-1)))))
However the count part will not work. It keeps returning nothing
instead of a count of the number of cells containing data in column
A. It is neccessary to do the "Cell" part to exclude the current cell
and so avoid getting a circular reference .
Further testing shows that it is something to do with excel not
evaluating the counta formula correctly. But I do not know why.
Any help/suggestions appreciated.
|