balaji3081
New Member
- Joined
- May 10, 2013
- Messages
- 17
Hi All.
I am looking for a macro to find the text in Col A, and copy multiple cells based on a column heading for eg as in the below table
Look for text -
"Total Sales X country"
"Total Sales Y country"
and from the same rows copy from cells with column heading as Quater 1 and Quater 2 and paste into a new file ( All data.xlsx)
NOTE
- All data file has the heading Quarter 1 and Quater 2 already mentioned.
- the heading change month over month so wanted it to mentioned outside the macro.
Any help appreciated here , Thanks
I am looking for a macro to find the text in Col A, and copy multiple cells based on a column heading for eg as in the below table
Look for text -
"Total Sales X country"
"Total Sales Y country"
and from the same rows copy from cells with column heading as Quater 1 and Quater 2 and paste into a new file ( All data.xlsx)
NOTE
- All data file has the heading Quarter 1 and Quater 2 already mentioned.
- the heading change month over month so wanted it to mentioned outside the macro.
Any help appreciated here , Thanks
Jan | Feb | Mar | Quarter1 | Apr | May | June | Quarter 2 | ||
text1 | 3 | 4 | 5 | 12 | 7 | 9 | 5 | 21 | |
text2 | 2 | 5 | 6 | 13 | 1 | 1 | 1 | 3 | |
text3 | 3 | 3 | 3 | 9 | 2 | 4 | 5 | 11 | |
text3 | 4 | 6 | 3 | 13 | 4 | 1 | 5 | 10 | |
Total sales X country | 11 | 18 | 17 | 46 | 14 | 15 | 16 | 45 | |
text4 | |||||||||
text5 | |||||||||
text6 | |||||||||
Total sales Y country | 4 | 4 | 4 | 12 | 3 | 3 | 3 | 9 |