=IFERROR(VLOOKUP(lookup_value, table_array, col_index, FALSE), value_if_error)
| Argument | Required | Description |
|---|---|---|
| VLOOKUP arguments: lookup_value | Required | The value to search for — usually a cell reference like A2. Data type must match the lookup column. |
| table_array | Required | The table range containing both the lookup column and the return column. Always lock with $ signs when copying down. |
| col_index_num | Required | The column number within table_array to return, counting from 1 on the left. |
| range_lookup | Required | Always use FALSE for exact match. |
| IFERROR argument: value_if_error | Required | What to show when VLOOKUP returns any error. Use a text string for a message, 0 for numeric contexts, or an empty string to leave the cell blank. |
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Code | Price | Code | Product | Price |
| 2 | PRD-003 | =IFERROR(VLOOKUP(A2,$D$2:$F$11,3,FALSE),"Not found") | PRD-001 | Wireless Mouse | 29.99 |
| 3 | PRD-099 | Not found | PRD-002 | USB Keyboard | 45.99 |
| 4 | PRD-005 | 12.99 | PRD-003 | Monitor Stand | 89.50 |
| 5 | PRD-004 | Laptop Bag | 59.99 | ||
| 6 | PRD-005 | HDMI Cable | 12.99 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Emp ID | Department | Emp ID | Department |
| 2 | EMP-002 | =IFERROR(VLOOKUP(A2,$D$2:$E$7,2,FALSE),"No record") | EMP-001 | Engineering |
| 3 | EMP-999 | No record | EMP-002 | Marketing |
| 4 | EMP-004 | Finance | EMP-003 | Sales |
| 5 | EMP-004 | Finance | ||
| 6 | EMP-005 | HR |
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Code | Price | Code | Product | Price |
| 2 | PRD-001 | =IFERROR(VLOOKUP(A2,$D$2:$F$6,3,FALSE),0) | PRD-001 | Wireless Mouse | 29.99 |
| 3 | PRD-099 | 0 | PRD-002 | USB Keyboard | 45.99 |
| 4 | PRD-003 | 89.50 | PRD-003 | Monitor Stand | 89.50 |
| 5 | PRD-005 | 0 | PRD-004 | Laptop Bag | 59.99 |
| 6 | PRD-005 | HDMI Cable | 12.99 |
=IFERROR(VLOOKUP(A2,$D:$F,3,FALSE),"Not found")
=IFERROR(VLOOKUP(A2,$D:$E,2,FALSE),0)
=IFERROR(VLOOKUP(A2,$D:$E,2,FALSE),"")
=IFERROR(VLOOKUP(A2,Primary!$A:$B,2,FALSE),VLOOKUP(A2,Backup!$A:$B,2,FALSE))
=IF(IFERROR(VLOOKUP(A2,$D:$E,2,FALSE),"")="Active","Yes","No")
=IFNA(VLOOKUP(A2,$D:$F,3,FALSE),"Not found")
=IFERROR(VLOOKUP(A2,$D:$F,3,FALSE),0)
=XLOOKUP(A2,D:D,F:F,"Not found")