VLOOPUP & #NA -- How to write a formula in VLOOKUP

excelhelp1

New Member
Joined
Jul 22, 2003
Messages
7
Hello Mr Excel
When I use a VLOOKUP i get some #NA. How can I write the VLOOPUP formula so if "NA" is the output it is defualted to "0"
Thanks
K
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Not sure if you guys are still on this board, but if so, I wanted to let you know that the solution below just saved my butt! Thanks!
 
Upvote 0
Just used this one today, dead handy!!!!
If you're using Excel 2007 or later then you can use the new IFERROR function.

In older versions this is how you might do it:

=IF(ISNA(VLOOKUP(A1,C:D,2,0)),"",VLOOKUP(A1,C:D,2,0))

In Excel 2007 and later that can be reduced to:

=IFERROR(VLOOKUP(A1,C:D,2,0),"")

Note that the IFERROR function will trap ALL errors, not just the #N/A errors.
 
Upvote 0
To add to the above point....

If your still on Excel 2003 the IF(ISERROR instead of IF(ISNA will also trap all errors :)
 
Upvote 0
Hi,

IN G13 cell Iam getting N/A

=VLOOKUP($C13;'data 2013'!$B$5:$DK$150;$G$9;0)

Which other formula I can use and combined them to get 0 instead of N/A

Thank you
 
Upvote 0

Forum statistics

Threads
1,214,866
Messages
6,121,996
Members
449,060
Latest member
mtsheetz

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