i have a table of names with their numbers and want to use vlookup formula to lookup a specific number from a cell from that table and return me the name as the result but if the specific number in that cell is not found then i want it to try another cell for example
Table has 2 column
Note employee code consist of 3 numbers and station number consist of 4 numbers
| Employee Code/Station Number # | Name |
|:------------------------------:|:------:|
| 123 | John |
| 456 | joseph |
| 3213 | jack |
| 5656 | John |
On the next sheet for the result I have 3 columns
| Employee Code | Employee Station No | Name |
|---------------|---------------------|------|
| 456 | | |
| | 3213 | |
| | 5656 | |
| 123 | | |
Now I need a vlookup formula which will first lookup in the employee code column if number is there then substitute the result but if employee code is empty then lookup in the employee station no and substitute the result
=IFERROR(VLOOKUP(*employee code*, *TABLE*,2,false),VLOOKUP(*employee station no*, *TABLE*,2,false)