excelcheetah
New Member
- Joined
- Jul 7, 2011
- Messages
- 3
Hi,
I'm looking to move data that is placed somewhat randomly throughout a sheet in the following manner:
Mailing description
1x z
2x z
10x zzzz
Mailing description description
19xy ttttt yyyy
30 wth htw
and have it look like this:
mailing description1 description2
1x z
2x z
10x zzzz
19xy ttttt yyyy
30 wth htw
Note: the first group and the second group are in completely different columns. description can appear to the left of mailing. assume there can be an undetermined amount of descriptions and mailings spread out to different columns.
So in lehmen's terms: search for cells that CONTAIN the word "mailing" (they do not have to be an exact match of the word), copy everything beneath them until you hit a blank, paste the results into the same column in a different sheet (stacked on top of each other). Next, search for cells that CONTAIN the word "description" (they do not have to be an exact match of the word), copy everything beneath them until you hit a blank, paste to the right of the mailing name they were in the same row as, and if there were multiple descriptions continue placing further to the right of the mailing name they were in the same row as.
I have some macro experience but I have not written anything, only copied and modified so if someone could help me get started on this it would be appreciated. I do have a lot of experience writing formulas but macros are still very foreign to me.
thanks
I'm looking to move data that is placed somewhat randomly throughout a sheet in the following manner:
Mailing description
1x z
2x z
10x zzzz
Mailing description description
19xy ttttt yyyy
30 wth htw
and have it look like this:
mailing description1 description2
1x z
2x z
10x zzzz
19xy ttttt yyyy
30 wth htw
Note: the first group and the second group are in completely different columns. description can appear to the left of mailing. assume there can be an undetermined amount of descriptions and mailings spread out to different columns.
So in lehmen's terms: search for cells that CONTAIN the word "mailing" (they do not have to be an exact match of the word), copy everything beneath them until you hit a blank, paste the results into the same column in a different sheet (stacked on top of each other). Next, search for cells that CONTAIN the word "description" (they do not have to be an exact match of the word), copy everything beneath them until you hit a blank, paste to the right of the mailing name they were in the same row as, and if there were multiple descriptions continue placing further to the right of the mailing name they were in the same row as.
I have some macro experience but I have not written anything, only copied and modified so if someone could help me get started on this it would be appreciated. I do have a lot of experience writing formulas but macros are still very foreign to me.
thanks