vlookup

ghia88

New Member
Joined
Jun 22, 2011
Messages
5
Hi,

do you know how can i do to retunr a 0 value if something it's not present in my clomn look up...?
at the moment i have
=VLOOKUP(I5,'Exposure'!$A$5:$D$18,4,0)

=IF(VLOOKUP(J5,'Exposure'!$A$5:$D$18,1,0)="ILS",vlooukup(J5,'Exposure'!$A$5:$D$18,4,0),"0")

so basically i m looking into a different tab for currencies and with a vollokup retunring the amount, but if the currency is not there at the moment reports me NA

thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
=IF(ISERROR(VLOOKUP(I5,'Exposure'!$A$5:$D$18,4,0)),0,VLOOKUP(I5,'Exposure'!$A$5:$D$18,4,0))


This says if your vlookup returns an error (#N/A, etc.) it will return a 0 instead.
 
Upvote 0
If you are using excel 2007 or later, you can use the IFERROR command:
=iferror(VLOOKUP(I5,'Exposure'!$A$5:$D$18,4,0),0)

This will replace any error you receive from the vlookup with the specified value, in this case '0'.
 
Upvote 0
you can try wrapping an iserror around it

=if(iserror(IF(VLOOKUP(J5,'Exposure'!$A$5:$D$18,1,0)="ILS",vlooukup(J5,'Exposure'!$A$5:$D$18,4,0),"0")),0,IF(VLOOKUP(J5,'Exposure'!$A$5:$D$18,1,0)="ILS",vlooukup(J5,'Exposure'!$A$5:$D$18,4,0),"0"))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,284
Members
452,902
Latest member
Knuddeluff

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