Vlookup: unexplainable - for me - #N/A

Hans Troost

New Member
Joined
Jan 6, 2015
Messages
35
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I'm completely stuck: just missing - checking and cheking again - what I do wrong with this VLookup.

1. Got it working in this example:

Validate the value for B10 with list =$F$2:$F$7 and with vlookup in A6 get the corresponding value from column G. Works perfect.
Formula in A6: =VLOOKUP(B10;F2:G7;2;FALSE)

Functioning one:
Pas G&O.xltx
ABCDEFG
1Klantnummer:01/250
2Naam: Dhr. A. van LekkerkerkerBaarn06-38496812
3Blaricum en Laren06-38547751
4Afmelden:Hilversum06-46454235
5VÓÓR 10:30 uur op de uitgiftedagHuizen06-38496811
606-38547751/ 035-5338836 Soest06-3849680
7Weesp12345678
8
9
10Uitgiftepunt:Blaricum en Laren
Sheet1
Cell Formulas
RangeFormula
A6A6=VLOOKUP(B10,F2:G7,2,FALSE)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A7Cell Value=$A$7textNO
Cells with Data Validation
CellAllowCriteria
A6List=$G$2:$G$7
B10List=$F$2:$F$7



2: Not working:
Validate column D values with list =$G$2:$G$8 and want to get the corresponding mobile number from column F.
Formula in C2 and further down: =VLOOKUP(D2;$F$2:$G$8;1;FALSE) delivers #N/A

Nieuwe klanten.xlsx
ABCDEFG
1KlantnummerNaamMobielUitgiftepuntMobielUitgiftepunt
201/1912Klant0106-4645423502 Hilversum vrijdag06-3849681100 Huizen
301/3288Klant02#N/A01 Hilversum donderdag06-4645423501 Hilversum donderdag
400/3230Klant03#N/A00 Huizen06-4645423502 Hilversum vrijdag
500/961Klant04#N/A00 Huizen06-384968003 Soest
603/2541Klant05#N/A03 Soest06-3849681204 Baarn
702/3254Klant06#N/A02 Hilversum vrijdag06-123456705 Weesp
803/674Klant07#N/A03 Soest06-3854775108 BEL (Blaricum/Eemnes/Laren)
905/2248Klant08#N/A05 Weesp
1001/3228Klant09#N/A01 Hilversum donderdag
1103/697Klant10#N/A02 Hilversum vrijdag
1208/2511Klant11#N/A03 Soest
1301/3297Klant12#N/A01 Hilversum donderdag
1402/2343Klant13#N/A02 Hilversum vrijdag
Nieuwe klanten
Cell Formulas
RangeFormula
C2C2='D:\Documents\4DD\Klantenpassen\Visitekaartjes\[Pas G&O2.xlsx]Sheet1'!$A$6
C3:C14C3=VLOOKUP(D3,$F$2:$G$8,1,FALSE)
Cells with Data Validation
CellAllowCriteria
G2:G3List=$G$2:$G$8
D1:D14List=$G$2:$G$8


What do I do wrong in this 2nd case?

Any help appreciated,

Hans Troost
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello, VLOOKUP does not work from right to left without some additional inputs (e.g. switching the columns via a formula). With 365 you could try e.g. XLOOKUP:

Excel Formula:
=XLOOKUP(D2:D14,G2:G8,F2:F8)
 
Upvote 0
Solution
VLOOKUP will only look for the lookup value in the first column of the table. Either use INDEX and MATCH or XLOOKUP if you are using a version that supports it:

=XLOOKUP(D3,$G$2:$G$8,$F$2:$F$8)
 
Upvote 0
Many thanks!!

Just manually switched columns F and G and problem solved! I did not know that "VLOOKUP will only look for the lookup value in the first column of the table". This was my 1st experiendce with VLOOKUP.

So supportive and fast!

Have a nice day - I now have...

Hans Troost
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

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