G
Guest
hi i have data in this form
Year Month Day of year, n DataA DataB DataC DataD DataE
97 Oct 291 111 222 333 444 555
666 777 888 999 000
97 Dec 350 123 345 456 234 456
321 232 543 432 246
654 332 569 432 234
Actually each year and month data has 12 rows each ( the example above has 2
rows and 3 rows as an example)
I would like to sort this data into another spreadsheet which already has
the data fields
Year Month Day of Year,n DataA DataB DataC DataD
96 Oct 298
.... ... ...
.... ... ...
How do i write a VBA program to search for the data in the first spreadsheet
based on the year and day_of_year, n , and copy and paste the corresponding
data to the second spreadsheet accordingly?
If i am unclear, basically, if the first field in the second spreadsheet was
96 and 298, the program will search the first spreadsheet based on 96 and
298, copy the corresponding data from 12 rows of the data fields DataA,DataB,
DataC, etc and paste this data onto the second spreadsheet at the rows with
96 and 298, and so on.
Sorry if it's confusing! Thanks if someone can help me on this!
Year Month Day of year, n DataA DataB DataC DataD DataE
97 Oct 291 111 222 333 444 555
666 777 888 999 000
97 Dec 350 123 345 456 234 456
321 232 543 432 246
654 332 569 432 234
Actually each year and month data has 12 rows each ( the example above has 2
rows and 3 rows as an example)
I would like to sort this data into another spreadsheet which already has
the data fields
Year Month Day of Year,n DataA DataB DataC DataD
96 Oct 298
.... ... ...
.... ... ...
How do i write a VBA program to search for the data in the first spreadsheet
based on the year and day_of_year, n , and copy and paste the corresponding
data to the second spreadsheet accordingly?
If i am unclear, basically, if the first field in the second spreadsheet was
96 and 298, the program will search the first spreadsheet based on 96 and
298, copy the corresponding data from 12 rows of the data fields DataA,DataB,
DataC, etc and paste this data onto the second spreadsheet at the rows with
96 and 298, and so on.
Sorry if it's confusing! Thanks if someone can help me on this!