If your source data were in SomeWorksheet!A1:FE305 named Source, then in another
worksheet's A1 cell enter the formula
=INDEX(Source,INT((ROW()+160)/161),MOD(ROW()-1,161)+1)
copy and paste into A2:A49105. No need for macros.
Harlan...Not working. I must be doing something wrong. The array size was a
test case...have reduced size some for real data. Currently, 2D array is on
a worksheet named "Surce" and blank second worksheet named "one column".
In Source, array is 125 columns x 300 rows = 37,500 cells.
In the "single column" worksheet, in A1 I entered your equation. It choked
and told me I had an invalid name, then somehow I stumbled onto the dialog
box where you point to the location of entries in the equation and found
that what it didn't like was the name Source in the syntax you show, but
wanted to see the following suntax.
=INDEX("Source!",INT((ROW()+124)/125),MOD(ROW()-1,125)+1)
which is the current form of my equation. Notice that I've substituted 124
for your 160 and 125 for your 161 since 161 referred to the number of
columns in my previous set and in my current set, that value is 125. With
the equation in this form, I get a cell entry #VALUE! and error message
telling me I have an error in some value. I tried to use the step-through
evaluation, but the first step says that en error in the value will occur
on the next step, adnsince I've never doen this before, I don't know how to
interpret that and proceed. It shows a reference...
'one column'!$A$1 = INDEX("Source!",1,1)
where the stuff on the right side is underlined and the "1" before the last
parenteses is in italics. The note at the bottom of the box says that "the
next evaluation will result in an error." Clicking the "Evaluate" button
then shows the result of the underlined calculation which is the #VALUE! in
teh cell.
As far as I can tell, it's still choking on the name of the Source page, or
its syntax. Since I don't understand how the Index function works, I'm
having trouble debugging. Suggestions? Incidentally, I'm running Excel
2002-SP1.
Additional help greatly appreciated!
Optiker