The merging of array has been addressed in a few posts but before I write my own (copy someonelse!) code to loop through the arrayI tought I asked here 1st

I have 3 arrays of the same length (n row, 2 column): xarray, yarray, zarray

and the data are numbers something like

0.,0.

0.01,5.2

0.02,6.4

etc

the 1st column is identical for all 3 arrays

I want to create a 4th array MergedData() of length (n row, 4 columns)

where

1st column = 1st column of xarray()

2nd column = 2nd column of xarray()

3rd column = 2nd column of yarray()

4th column = 2nd column of zarray()

What would the "neatest" way of creating the array MergedData()? I can onlu think of something like that!

For i = 0 to UBound(xarray)

MergedData(i,0)=xarray(i,0)

MergedData(i,1)=xarray(i,1)

MergedData(i,2)=yarray(i,1)

MergedData(i,3)=zarray(i,1)

Next

Any suggestions/ideas welcome

Thanks

Regards

JXB