VLOOKUP using FALSE & IF = 0 returning incorrect value

AlexaS

Board Regular
Joined
Oct 12, 2012
Messages
158
Ok, the problem I am having is that I have two accounts that need to be included in case they are ever used, but are not in my data list at the moment. Here is the formula I used:

=IF(VLOOKUP(V12,TB!$A$1:$E$86,4)=0, "",(VLOOKUP(V12,TB!$A$1:$E$86,4)))

V12 is the value I am looking up (in this case it is 600106). It is returning the value for 600104. I understand the concept of a fuzzy match, but when I put in 0 or FALSE, in one or both parts of the formula, it returns #N/A.

Also - the line directly below it (620305) has the exact same formula and correctly returns a "" value. There is an account in the dataset that is 620300, so I don't know why it would mess up on the first one and not the second.

Thanks for any suggestions to get this working!

-Alex
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
What does this statement mean vlookup(........)=0, is it to mean if the value is not found, if thats what you mean, then you should be using something like iferror(vlookup(...))=true,.....
 
Upvote 0
you didn't tell it to find exact match try this see if it works.
=IF(VLOOKUP(V12,TB!$A$1:$E$86,4,0)=0, "",(VLOOKUP(V12,TB!$A$1:$E$86,4,0)))
 
Upvote 0
What does this statement mean vlookup(........)=0, is it to mean if the value is not found, if thats what you mean, then you should be using something like iferror(vlookup(...))=true,.....

This worked perfectly, thank you!
 
Upvote 0

Forum statistics

Threads
1,223,666
Messages
6,173,672
Members
452,527
Latest member
ineedexcelhelptoday

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