I've been Having a problem with excel regarding matching and merging cells. I have one table that contains some but not all IDs with some data (table1) and I have another that contains all IDs with different data(table2).
I want to match and merge these two tables so that table1 also contains the data that table 2 has, matched by ID.
I do not have enough rep to post picture so I'll try and show what I am struggling with in a code block.
Table 1
F1 Gnr
x12
x25
x37
x63
Table 2
F1 Gnr
x1 y8
x2 y3
x3 y29
etc. etc.
Desired outcome:
F1 Gnr
x12 y56
x25 y38
x37 y98
x63 y42
This is a simplified version of the problem and I hope it helps to illustrate what I want done. I have tried VLOOKUP and Index and Match but for some reason it WILL NOT work.
edit: Below you find what piece of code I have been using:
=IFERROR(VLOOKUP(Sheet1!A$2;Sheet2!$A$1:$D$50;COLUMN(A1);FALSE);Sheet1!A2)
Here I believe I am looking up the value from sheet1A2 and trying to match that value to the complete table in sheet2. The result I get though is the value of Sheet1!A2 (the iferror value).?
Thanks.
y56
,y38
etc.. are coming?