Is it possible to lookup values in excel in the following method:
Table 1
ID | Code
-----------------
1 | I
1 | J
1 | K
2 | I
2 | J
2 | L
Table 2
ID | I | J | K | L
----------------------------------------------
1 | 14.40 | 12.33 | 9.21 |
2 | 13.99 | 11.28 | | 32.33
The lookup would be to add the column values in table 2 next to the table 'code' in table 1. So table 1 would change to:
Table 1
ID | Code | Amount
-------------------------
1 | I | 14.40
1 | J | 12.33
1 | K | 9.21
1 | L |
2 | I | 13.99
2 | J | 11.28
2 | K |
2 | L | 32.33
As a reminder, this is a project being run in Microsoft Excel 2003.
Update
I believe I can use a vlookup on the first column and given I know the placement of the code fields, I could go this route but the issue would be I cannot copy and paste this formula across an entire column because the order of which codes may appear can vary (and are not the same from ID to ID).