Hi
I am looking to sorta data set that is about 10,000 rows by 6 columns and I need help writing asimple macro
I made an example to illustrate what I am looking for.
I want to search the first column of data in Table 1and look for all rows that contain the letter "a" and put all of those rows in a new Table 2. Then it does the same thing for rows that contain the letter "b" and then "c". In the end I would have three separate tables with the data sorted.
<tbody>
</tbody>
I did somethingsimilar to this years ago with arrays. Put all the data from the original tablein an Array and the with an if statement loop through the array and then it populated "a" array, "b" array and a "c" array. Once thatwas done it printed them out to designated cells.
If anyone has anyrecommendations or can point me to a thread I missed(I looked but am relativelynew to the site) I would appreciate it.
Thank you and I appreciate the help
Porter
I am looking to sorta data set that is about 10,000 rows by 6 columns and I need help writing asimple macro
I made an example to illustrate what I am looking for.
I want to search the first column of data in Table 1and look for all rows that contain the letter "a" and put all of those rows in a new Table 2. Then it does the same thing for rows that contain the letter "b" and then "c". In the end I would have three separate tables with the data sorted.
Table 1 | Table 2 | Table 3 | Table 4 | |||||||||||
X | y | Z | X | y | Z | X | y | Z | X | y | Z | |||
a1 | 1 | 4 | a1 | 1 | 4 | b1 | 2 | 3 | c1 | 3 | 2 | |||
b1 | 2 | 3 | a2 | 1 | 4 | b2 | 2 | 3 | c2 | 3 | 2 | |||
c1 | 3 | 2 | ||||||||||||
a2 | 1 | 4 | ||||||||||||
b2 | 2 | 3 | ||||||||||||
c2 | 3 | 2 |
<tbody>
</tbody>
I did somethingsimilar to this years ago with arrays. Put all the data from the original tablein an Array and the with an if statement loop through the array and then it populated "a" array, "b" array and a "c" array. Once thatwas done it printed them out to designated cells.
If anyone has anyrecommendations or can point me to a thread I missed(I looked but am relativelynew to the site) I would appreciate it.
Thank you and I appreciate the help
Porter
Last edited by a moderator: