excelnubie95
New Member
- Joined
- Sep 23, 2015
- Messages
- 6
I am working on a macro that searches through Column A (Sheet 1) for a list of values on Sheet 2 Column A. Once a value is found in Column A (Sheet 1) from Sheet 2 Column A, the macro returns the corresponding value in Sheet 1 column B from Sheet 2 Column B. The number that is being searched in Sheet 1 Column A, can be anywhere in the cell. I am using Excel 2013.
Sheet 1
A
78963-1234
79432-4321
0987-56834
4321-84356
.
.
.
Sheet 2
A | B
1234 | product 1
4321 | product 2
0987 | product 3
.
.
.
After Macro is run Sheet 1 would look like this:
Sheet 1
A | B
78963-1234 | product 1
79432-4321 | product 2
0987-56834 | product 3
4321-84356 | product 2
Sheet 1
A
78963-1234
79432-4321
0987-56834
4321-84356
.
.
.
Sheet 2
A | B
1234 | product 1
4321 | product 2
0987 | product 3
.
.
.
After Macro is run Sheet 1 would look like this:
Sheet 1
A | B
78963-1234 | product 1
79432-4321 | product 2
0987-56834 | product 3
4321-84356 | product 2
Last edited: