Vlookup Question

inahaze72

New Member
Joined
Apr 7, 2002
Messages
1
Is there a way to have the Vlookup formula return a 0 value if there is not a match. Currently, if the formula doesn't find a match, it returns an output of #N/A. I need to convert it to a numeric value.

Formula I'm using:
=VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE)

thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
On 2002-04-08 10:38, inahaze72 wrote:
Is there a way to have the Vlookup formula return a 0 value if there is not a match. Currently, if the formula doesn't find a match, it returns an output of #N/A. I need to convert it to a numeric value.

Formula I'm using:
=VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE)

thanks

Not with a single VLOOKUP. Some will suggest testing the results of a VLOOKUP and then returning "" if it's #N/A; otherwise perform another VLOOKUP. This is very inefficient when all you really need to do is return the VLOOKUP results to a cell [hidden, if desire] (e.g., A2) and then test those results in another using =IF(ISNA(A2),"",A2).
This message was edited by Mark W. on 2002-04-08 10:50
 
Upvote 0
=IF(ISNA(VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE));0;VLOOKUP(A2,'page1'!$A$1:$B$3795,2,FALSE))
This message was edited by Albert 1 on 2002-04-08 10:54
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

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