I have a spreadsheet that has to columns A & B with information in them. A has a list of numbers and B has codes.
A B
1 AAA
2 BBB
3 CCC
4 DDD
5 EEE
I have another column (C) that has the same information as B but there is more than 1 instance for each code
C
AAA
AAA
CCC
DDD
DDD
EEE
What I need to do in column D is lookup column B and get the value from column A. So my result would be:
C D
AAA 1
AAA 1
CCC 3
DDD 4
DDD 4
EEE 5
Any ideas how to achieve this in excel?
A B
1 AAA
2 BBB
3 CCC
4 DDD
5 EEE
I have another column (C) that has the same information as B but there is more than 1 instance for each code
C
AAA
AAA
CCC
DDD
DDD
EEE
What I need to do in column D is lookup column B and get the value from column A. So my result would be:
C D
AAA 1
AAA 1
CCC 3
DDD 4
DDD 4
EEE 5
Any ideas how to achieve this in excel?