VLOOKUP

Mike

New Member
Joined
Feb 24, 2002
Messages
5
I've seen it before
How do I not return a #NA in a vlookup statement? Please direct me to the archived answer
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
On 2002-02-25 13:17, Mike wrote:
I've seen it before
How do I not return a #NA in a vlookup statement? Please direct me to the archived answer

Mike,

Would take eons before I find one of the many VLOOKUP formulas, whence...

If you need an exact match, use:

=IF(COUNTIF(A1:A7,lookup-value),VLOOKUP(lookup-value,A1:D7,2,0),0)

Otherwise use:

=IF(ISNUMBER(MATCH(lookup-value,A1:A7)),VLOOKUP(lookup-value,A1:D7,2),0)

Both return 0 instead of #N/A.

A1:D7 is the lookup-table, whose first column is A1:A7.

Aladin
 
Upvote 0
=IF(ISERROR(VLOOKUP(a1,$b$7:$C$12,2,0)=TRUE),"no error",VLOOKUP(a1,$b$7:$C$12,2,0))

Try this above.

Best of luck
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,759
Members
449,048
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top