Sample Data
Two tables: Left table with IDs and Names (A1:B4), Right table with IDs and Scores (D1:E4). We want to merge them by ID.
| Cell | Value |
|---|---|
| A1 | ID |
| B1 | Name |
| A2 | 1 |
| B2 | Alice |
| A3 | 2 |
| B3 | Bob |
| A4 | 3 |
| B4 | Charlie |
| D1 | ID |
| E1 | Score |
| D2 | 2 |
| E2 | 85 |
| D3 | 3 |
| E3 | 90 |
| D4 | 4 |
| E4 | 75 |
Two tables: Left table with IDs and Names (A1:B4), Right table with IDs and Scores (D1:E4). We want to merge them by ID.
| Cell | Value |
|---|---|
| A1 | ID |
| B1 | Name |
| A2 | 1 |
| B2 | Alice |
| A3 | 2 |
| B3 | Bob |
| A4 | 3 |
| B4 | Charlie |
| D1 | ID |
| E1 | Score |
| D2 | 2 |
| E2 | 85 |
| D3 | 3 |
| E3 | 90 |
| D4 | 4 |
| E4 | 75 |
=IFERROR(VLOOKUP(A2, $D$2:$E$4, 2, FALSE), "No Score")A B C D E 1 | ID | Name | | ID | Score 2 | 1 | Alice | | 2 | 85 3 | 2 | Bob | | 3 | 90 4 | 3 | Charlie| | 4 | 75 Arrows: A2 -> VLOOKUP lookup value Range $D$2:$E$4 -> VLOOKUP table array Column 2 -> VLOOKUP returns Score
A B C 1 | ID | Name | Score 2 | 1 | Alice | No Score 3 | 2 | Bob | 85 4 | 3 | Charlie| 90