12-27-2010 09:50 AM
I'm sorry, would it be possible to modify the attached? sorry, I don't quite get it.
Thanks
Kas
12-27-2010 01:31 PM - edited 12-27-2010 01:32 PM
I went through your suggestion, but I still couldn't do it. However, I managed to get half of it working.
I now can rearrange and place the data where they should be based on "row", but I still can't rearrange it based on the "Column".
Attached is modified version.
Thanks
Kas
12-27-2010 04:46 PM
I went through the suggestion again and payed little more attention. It worked just as you said. Thanks again for your replies.
Just incase, attached is the working example for anyone else reading this thread.
Thanks
Kas
12-28-2010 02:11 AM
09-17-2012 10:03 PM
Hi I have a similar question for this topic,
I will like to insert data in a row by "n" times given on first column.
The data to be inserted corresponds to the data where the "n" number is located
Here's an example of my 2D array:
From:
3 0 0 0 1
1 1 1 1 0
2 0 0 1 1
To:
0 0 0 1
0 0 0 1
0 0 0 1
1 1 1 0
It doesn't matter if column 0 is also inserted i can delete after.
Thanks a lot in advance.
R
09-18-2012 04:33 AM
I don't get it. are you saying that because you have a "3" in the first column, you are now insterting 3 rows of the same element afterwords?
i.e.
From:
3 0 0 0 1
1 1 1 1 0
2 0 0 1 1
to:
0 0 0 1
0 0 0 1
0 0 0 1
0 0 0 1
1 1 1 0
0 0 1 1
09-18-2012 11:21 AM
Yes, that's exactly right. The first column is given to me and as you pointed out it determines how many times the same element is repeated afterwords.
09-18-2012 03:20 PM
Maybe attached would suffice.
09-18-2012 04:01 PM
It looks like this could work, I'll give it a try...Thanks a lot!
09-18-2012 04:59 PM
Hi, it gave me some idea on how to approach it, in my case the elements are string. Here's a snapshot of what i'm looking for would look like:
Thanks!