VLOOKUP Formula not working

mrsphxbabe

Board Regular
Joined
Aug 11, 2008
Messages
60
Can someone look at this code and tell me what I am doing wrong? I am trying to add a column into a spread sheet by taking tghe information from sheet 2 of the workbook.

=IF($B3<>"",VLOOKUP($B3,Sheet2!$A$1:$B$200,2,FALSE),IF($C3<>"",VLOOKUP($C3,Sheet2!$A$1:$B$200,2,FALSE),VLOOKUP($D3,Sheet2!$A$1:$B$200,2,FALSE)))

It only returns the value of #N/A

What am I doing wrong?
Thanks for your help!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
That means that it is not finding a match for whatever value it is trying to look up (B3, C3, or D3).
Note that the values must match EXACTLY and be of the same data type.
So, you cannot match a number to text (if you have a number entered as text, it is not treated as a number!)
Also, if there are any extra spaces at the end of either value, and they are not the same, they will not match either (i.e. "A " will not match to "A").
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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