Lingyun Xu (neil) said:
You are right. All I need is to make D1 to A2, E1 to B2, A2 to C3
In fact I have 18*18*18 elements. The original data was a text file. I
converted it to csv. The problem is these data are based on X Y Z
coordinates but the csv file is separated by 5 columns. I have to make it 3
columns.
one way:
on a separate sheet enter this in cell A1:
=OFFSET(Sheet1!$A$1,INT((ROW()*3+COLUMN()-4)/5),
MOD(ROW()*3+COLUMN()-4,5))
copy right to C1, then copy A1:C1 down as far as required.
To convert the formulas to values, you can then select columns A:C,
copy them, then choose Edit/Paste Special, selecting the Values
radio button.