Hello everyone
I have 1D array with 1 million items .. and I need to convert it to 2D array
I know Application.Transpose can do the trick but it will not work with this large arrays
Any ideas?
Simplist approach to convert 1D array to 2D array
-
- PlatinumLounger
- Posts: 4931
- Joined: 31 Aug 2016, 09:02
-
- Administrator
- Posts: 78568
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Simplist approach to convert 1D array to 2D array
I fear you'll have to write a loop...
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4931
- Joined: 31 Aug 2016, 09:02
Re: Simplist approach to convert 1D array to 2D array
Thanks a lot, Mr. Hans for reply. I am trying to avoid loops to make the code faster.
-
- Administrator
- Posts: 78568
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Simplist approach to convert 1D array to 2D array
I understand, but I don't know how to avoid a loop here.
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4931
- Joined: 31 Aug 2016, 09:02
Re: Simplist approach to convert 1D array to 2D array
I remember something related to using INDEX function for such a purpose..!
-
- Administrator
- Posts: 78568
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Simplist approach to convert 1D array to 2D array
Best wishes,
Hans
Hans