Vlookup

Tablemountain

New Member
Joined
Aug 15, 2011
Messages
3
What do i need to add to my vlookup formula when the result comes back a #N/A and i want it to read Zero (0)?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

Wrap iferror function around you vlookup and give zero in 2 nd argument.

Use =iferror(vlookup,0)

If you are using 2003 use if and iserror

=IF(ISERROR(VLOOKUP(D7,$G$9:$H$9,2,0)),0,VLOOKUP(D7,$G$9:$H$9,2,0))
 
Upvote 0
=IF(isna,VLOOKUP(G20,$B$10:$D$669,3,FALSE),0) am i missing something?
now i get a #name? result

=IF(isna(VLOOKUP(G20,$B$10:$D$669,3,FALSE)),0,VLOOKUP(G20,$B$10:$D$669,3,FALSE))

Notice that you're performing the vlookup twice, so if you have a lot of these it could affect performance times.
 
Upvote 0
What do i need to add to my vlookup formula when the result comes back a #N/A and i want it to read Zero (0)?
The best solution depends on what version of Excel you're using?

When the formula is not returning #N/A what type of data does it return? Is it text? Numeric? Could be either?
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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