This is my first excel task and I am a bit lost. Here are my sheets:
sheet1
name product_id
ABC
DEF
ERG
ZYT
sheet2
name product_id
ABC 1
DEF 2
WRT 8
ERG 9
Now what i want is for sheet product_id field to be filled in based on name field of the sheets. E.g. ABC is 1 in sheet 2 and in sheet 1, i need it to become 1 also. The number of rows differ (sheet 1 is shorter) and any not found names in sheet 1 should be ignored. In the end, I need sheet 1:
sheet1
name product_id
ABC 1
DEF 2
ERG 9
ZYT
Since ERG and ZYT are not found in sheet 2, they should be ignored. The order of the names could be different so I am looking for away to scan/loop and replace, if i am making any sense.
I have seen this https://www.extendoffice.com/documents/excel/4112-excel-copy-column-based-on-cell-value.html but it keeps on saying formula incorrect.
I am not familiar with VBA so it would be nice if it can be done using simple excel formulas.
Update:
following the suggested answer, i did come close but somehow rows are skipped if A column (searched column) don't match