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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,215,650
Messages
6,126,019
Members
449,280
Latest member
Miahr

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