rwmill9716
Active Member
- Joined
- May 20, 2006
- Messages
- 493
- Office Version
- 2013
- Platform
- Windows
I need a macro that will:
1. On Sheet 1, Read Cell A8's value (here 3)
2. Match that value with the values in row 2 (here Col D)
3. Copy the Matched Column to Column A of another Sheet (Sheet2)
Here, I show that copy in Col G, but I need it copied onto another Sheet
Note, my real data set will have many more columns of data to choose from (and the columns of data will be much longer (~50 cells)
Thanks in advance for your help.
Ric
1. On Sheet 1, Read Cell A8's value (here 3)
2. Match that value with the values in row 2 (here Col D)
3. Copy the Matched Column to Column A of another Sheet (Sheet2)
Here, I show that copy in Col G, but I need it copied onto another Sheet
Note, my real data set will have many more columns of data to choose from (and the columns of data will be much longer (~50 cells)
Thanks in advance for your help.
Ric
Excel 2010 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Data 1 | Data 2 | Data 3 | Data 4 | Data 3 | ||||
2 | Match Row | 1 | 2 | 3 | 4 | 3 | |||
3 | 2 | 3 | 4 | 5 | 4 | ||||
4 | 3 | 4 | 5 | 6 | 5 | ||||
5 | 4 | 5 | 6 | 7 | 6 | ||||
6 | 5 | 6 | 7 | 8 | 7 | ||||
7 | Match | 6 | 7 | 8 | 9 | 8 | |||
8 | 3 | 7 | 8 | 9 | 10 | 9 | |||
9 | 8 | 9 | 10 | 11 | 10 | ||||
10 | 9 | 10 | 11 | 12 | 11 | ||||
11 | 10 | 11 | 12 | 13 | 12 | ||||
Sheet1 |