hi
i want to add one dimension to an array
here is part of the code
any way...i receive an error![]()
Please Login or Register to view this content.
any help?
thanks
hi
i want to add one dimension to an array
here is part of the code
any way...i receive an error![]()
Please Login or Register to view this content.
any help?
thanks
Last edited by shaykos; 12-03-2015 at 02:48 PM.
Please take a few minutes to re-read the forum rules, and then edit your post to add CODE tags.
Thanks.
Entia non sunt multiplicanda sine necessitate
yes sir haha
You haven't dimensioned Array2.
If posting code please use code tags, see here.
Converts 1D array to 1 Based 2D array.![]()
Please Login or Register to view this content.
hi
sorry for that but i still dont understand this method(only when paste vertical to horizontal and vice versa)
can u show me the full code to convert one dimension array to 2D?
column A is identifier(one number) and the the B column(same row) is data breaks by commas(1,4,3,2,4,0,0,0,3,2...)
i just want for each of those rows to make column A as the first dimension(the number of elements is the rows number) and the second dimension is the data in column B
Ahhh, you want it as
But why do you need it so?![]()
Please Login or Register to view this content.
Transpose will give you
So this is not what you want.![]()
Please Login or Register to view this content.
still got en error with this
I'll give an example for what i need(suppose to be simple to do that)
column A____ column B
1 __________ 1,2,3,4,5....
2 __________ 11,22,33,44,55...
3 __________ 4,6,7,6,5,4,3,....
4 __________ 1,3,5,7,8,0,3,4,2,....
now i just want to call for example to Array2(3,5)
and it should give me the 0
Last edited by shaykos; 12-04-2015 at 07:40 PM.
I don't understand why you need it an array...
I would do like
![]()
Please Login or Register to view this content.
i heard that arrays works much faster than others methods
actually it's a game results
each row is a player
the "1,3,2,4,0,3,2,..." (column B) is the answers of the player for each question
finally i want to know the percentages for each answer for each question
after i got an array(x,y) ; x-index of player ; y-all the answers
i'll be able to continue with the calculations(and there are a lot of games)
It depends how you use it.
In your case, it is not much difference.
the issue is that i need that array for calculation
simple example: only one game, only 4 players,only 4 questions,only 4 answers for each question:
after i get the array i want to do:
![]()
Please Login or Register to view this content.
If you upload a workbook with data and the result taht you want, it may help understanding what you are trying to do.
However, reading your code is not understandable.
If you know about array, you should have loaded the data with loop or even manually, because it is 0 based.
So how would I know what you want to do?
ok...i think i got it
the issue was because i have to declare number of elements to the array...something with "Redim"
its not clean but it work now (based on my worksheet data)![]()
Please Login or Register to view this content.
Thanks u for the effort![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks