Forum Discussion
Matching an entry from 2 sets of data
- Aug 18, 2018
Hi,
You can use VLOOKUP as the example below.
Cell G4: =VLOOKUP(F4,$A$4:$B$12,2,0)
Please check out this https://support.office.com/en-us/article/VLOOKUP-function-0BBC8083-26FE-4963-8AB8-93A18AD188A1 to learn more about VLOOKUP function.
I hope that helps.
Mr. Amairah
Nice solution..
I have learned recently how to avoid #N/A by using IFERROR formula
= IFERROR(VLOOKUP(F4,$A$4:$B$12,2,0),"") or
= IFERROR(VLOOKUP(F4,$A$4:$B$12,2,0),"Not found!")
I hope I am correct...
thank you..
Hi Lorenzo Kim,
Yes, that's correct.
But if you have Excel 2013 or later, I recommend you to use https://support.office.com/en-us/article/ifna-function-6626c961-a569-42fc-a49d-79b4951fd461 function instead.
IFERROR will hide all types of errors while IFNA is only for the #N/A error type.
The benefit is that you will be alerted if an error other than #N/A occurred.
- Lorenzo KimAug 18, 2018Bronze Contributorthank you for the info..