VLOOKUP Formula

Harbor1704

New Member
Joined
Feb 11, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,
I have been trying to find an answer and have used multiple formulas to no avail :( I have two tables (County and City) and have two queries (County and City). I was trying to do a dropdown list of county and city in D5 and D13 however I was not succesful to get vlookup to work. So what I did was just do vlookup with a wildcard and trim without the lists, however it kept giving me an error. So now it is just a wildcard lookup however, when there is nothing in the county or city the abstractor defaults to the first cell of the table.

If someone could help me do lists and then write a vlookup formula to do a wildcard or exact match that would be awesome and greatly appreciated :)

VA Abstractor Query.xlsx
DEFGHIJKLM
1VA CityAbstractorVA CountiesAbstractors
2County Abstractor Query AlexandriaIndependence Title, Jefferson TitleAccomack Shore Title, LLC
3 BristolNo Abstractor on FileAlbemarle Greater Richmond Abstract, Jennifer Coffey
4County Abstractor Buena VistaNo Abstractor on FileAlleghany No Abstractor on File
5Shore Title, LLC CharlottesvilleJennifer CoffeyAmelia Powhatan Title
6 ChesapeakeEastern Virginia TitleAmherst Trinity Title
7 Colonial HeightsPowhatan Title, Greater Richmond Abstract Appomattox Trinity Title
8 CovingtonNo Abstractor on FileArlington Independence Title, Jefferson Title
9 DanvilleNo Abstractor on FileAugusta No Abstractor on File
10City Abstractor Query EmporiaNo Abstractor on FileBath No Abstractor on File
11 FairfaxIndependence Title, Jefferson TitleBedford Trinity Title, Gail Browning
12CityAbstractor Falls ChurchIndependence Title, Jefferson TitleBland No Abstractor on File
13 FranklinDroll's ExpressBotetourt Trinity Title, Gail Browning
14 FredericksburgIndependence Title, Terry's Title and AbstractBrunswick No Abstractor on File
15 GalaxNo Abstractor on FileBuchanan No Abstractor on File
16 HamptonTaylor Abstract, Droll's ExpressBuckingham Jennifer Coffey
17 HarrisonburgNo Abstractor on FileCampbell Trinity Title
18 HopewellPowhatan Title, Greater Richmond Abstract Caroline Terry's Title and Abstract, Greater Richmond Abstract
19 LexingtonNo Abstractor on FileCarroll No Abstractor on File
20 LynchburgTrinity TitleCharles City No Abstractor on File
21 ManassasIndependence Title, Jefferson TitleCharlotte No Abstractor on File
22 Manassas LakeNo Abstractor on FileChesapeake Droll's Express
23 Manassas ParkIndependence Title, Jefferson TitleChesterfield Powhatan Title, Greater Richmond Abstract
24 MartinsvilleNo Abstractor on FileClarke Independence Title
25 Newport NewsTaylor Abstract, Droll's Express, Eastern Virginia TitleCraig No Abstractor on File
26 NorfolkDroll's ExpressCulpeper Independence Title, Terry's Title and Abstract
27 NortonNo Abstractor on FileCumberland No Abstractor on File
28 PetersburgGreater Richmond Abstract Dickenson No Abstractor on File
29 PoquosonTaylor Abstract, Droll's Express, Eastern Virginia TitleDinwiddie Powhatan Title, Greater Richmond Abstract
30 PortsmouthDroll's Express, Eastern Virginia TitleEssex Terry's Title and Abstract
31 RadfordNo Abstractor on FileFairfax Independence Title, Jefferson Title
32 RichmondPowhatan Title, Greater Richmond Abstract Fauquier Independence Title, Terry's Title and Abstract
33 RoanokeSuffolk Title, Gail BrowningFloyd No Abstractor on File
34 SalemSuffolk Title, Gail BrowningFluvanna Jennifer Coffey
35 StauntonNo Abstractor on FileFranklin Gail Browning
36 SuffolkTaylor Abstract, Droll's Express, Suffolk TitleFrederick Independence Title
37 Virginia BeachDroll's ExpressGiles No Abstractor on File
38 WaynesboroNo Abstractor on FileGloucester Droll's Express
39 WilliamsburgTaylor Abstract, Droll's ExpressGoochland Powhatan Title, Greater Richmond Abstract
40 WinchesterIndependence Title, Jefferson TitleGrayson No Abstractor on File
41Greene Jennifer Coffey
42Greensville No Abstractor on File
43Halifax Trinity Title
44Hanover Powhatan Title, Terry's Title and Abstract, Greater Richmond Abstract
45Henrico Powhatan Title, Greater Richmond Abstract
46Henry No Abstractor on File
47Highland No Abstractor on File
48Isle of Wight Taylor Abstract, Droll's Express, Suffolk Title
49James City Taylor Abstract, Droll's Express, Greater Richmond Abstract, Eastern Virginia Title
50King and Queen Greater Richmond Abstract
51King George Terry's Title and Abstract
52King William Powhatan Title, Greater Richmond Abstract
53Lancaster No Abstractor on File
54Lee No Abstractor on File
55Loudoun Independence Title, Jefferson Title
56Louisa Powhatan Title, Terry's Title and Abstract, Jennifer Coffey
57Lunenburg No Abstractor on File
58Madison Terry's Title and Abstract, Jennifer Coffey
59Mathews Droll's Express
60Mecklenburg No Abstractor on File
61Middlesex No Abstractor on File
62Montgomery No Abstractor on File
63Nelson Jennifer Coffey
64New Kent Powhatan Title, Droll's Express, Greater Richmond Abstract
65NorfolkDroll's Express
66Northampton Droll's Express, Shore Title, LLC
67Northumberland No Abstractor on File
68Nottoway No Abstractor on File
69Orange Terry's Title and Abstract, Jennifer Coffey
70Page No Abstractor on File
71Patrick No Abstractor on File
72Pittsylvania Trinity Title
73Powhatan Powhatan Title, Greater Richmond Abstract
74Prince Edward No Abstractor on File
75Prince George Powhatan Title, Greater Richmond Abstract
76Prince William Independence Title, Jefferson Title
77Pulaski No Abstractor on File
78Rappahannock No Abstractor on File
79Richmond Terry's Title and Abstract
80Roanoke Trinity Title, Suffolk Title, Gail Browning
81Rockbridge Trinity Title
82Rockingham No Abstractor on File
83Russell No Abstractor on File
84Scott No Abstractor on File
85Shenandoah No Abstractor on File
86Smyth No Abstractor on File
87Southampton Droll's Express, Suffolk Title
88Spotsylvania Independence Title, Terry's Title and Abstract
89Stafford Independence Title, Jefferson Title, Terry's Title and Abstract
90Surry Droll's Express
91Sussex Droll's Express
92Tazewell No Abstractor on File
93Warren Independence Title
94Washington No Abstractor on File
95Westmoreland Terry's Title and Abstract
96Wise No Abstractor on File
97Wythe No Abstractor on File
98York Taylor Abstract, Droll's Express
Sheet1
Cell Formulas
RangeFormula
E5E5=VLOOKUP(D5&"*",Table1,2,0)
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I would use Index Match instead of the array vlookup try this

WorkbookY.xlsm
DEFGHIJKLM
1VA CityAbstractorVA CountiesAbstractors
2County Abstractor Query AlexandriaIndependence Title, Jefferson TitleAccomack Shore Title, LLC
3 BristolNo Abstractor on FileAlbemarle Greater Richmond Abstract, Jennifer Coffey
4County Abstractor Buena VistaNo Abstractor on FileAlleghany No Abstractor on File
5Shore Title, LLC CharlottesvilleJennifer CoffeyAmelia Powhatan Title
6 ChesapeakeEastern Virginia TitleAmherst Trinity Title
7 Colonial HeightsPowhatan Title, Greater Richmond Abstract Appomattox Trinity Title
8 CovingtonNo Abstractor on FileArlington Independence Title, Jefferson Title
9 DanvilleNo Abstractor on FileAugusta No Abstractor on File
10City Abstractor Query EmporiaNo Abstractor on FileBath No Abstractor on File
11 FairfaxIndependence Title, Jefferson TitleBedford Trinity Title, Gail Browning
12CityAbstractor Falls ChurchIndependence Title, Jefferson TitleBland No Abstractor on File
13Independence Title, Jefferson Title FranklinDroll's ExpressBotetourt Trinity Title, Gail Browning
14 FredericksburgIndependence Title, Terry's Title and AbstractBrunswick No Abstractor on File
15 GalaxNo Abstractor on FileBuchanan No Abstractor on File
16 HamptonTaylor Abstract, Droll's ExpressBuckingham Jennifer Coffey
17 HarrisonburgNo Abstractor on FileCampbell Trinity Title
18 HopewellPowhatan Title, Greater Richmond Abstract Caroline Terry's Title and Abstract, Greater Richmond Abstract
19 LexingtonNo Abstractor on FileCarroll No Abstractor on File
20 LynchburgTrinity TitleCharles City No Abstractor on File
21 ManassasIndependence Title, Jefferson TitleCharlotte No Abstractor on File
22 Manassas LakeNo Abstractor on FileChesapeake Droll's Express
23 Manassas ParkIndependence Title, Jefferson TitleChesterfield Powhatan Title, Greater Richmond Abstract
24 MartinsvilleNo Abstractor on FileClarke Independence Title
25 Newport NewsTaylor Abstract, Droll's Express, Eastern Virginia TitleCraig No Abstractor on File
26 NorfolkDroll's ExpressCulpeper Independence Title, Terry's Title and Abstract
27 NortonNo Abstractor on FileCumberland No Abstractor on File
28 PetersburgGreater Richmond Abstract Dickenson No Abstractor on File
29 PoquosonTaylor Abstract, Droll's Express, Eastern Virginia TitleDinwiddie Powhatan Title, Greater Richmond Abstract
30 PortsmouthDroll's Express, Eastern Virginia TitleEssex Terry's Title and Abstract
31 RadfordNo Abstractor on FileFairfax Independence Title, Jefferson Title
32 RichmondPowhatan Title, Greater Richmond Abstract Fauquier Independence Title, Terry's Title and Abstract
33 RoanokeSuffolk Title, Gail BrowningFloyd No Abstractor on File
34 SalemSuffolk Title, Gail BrowningFluvanna Jennifer Coffey
35 StauntonNo Abstractor on FileFranklin Gail Browning
36 SuffolkTaylor Abstract, Droll's Express, Suffolk TitleFrederick Independence Title
37 Virginia BeachDroll's ExpressGiles No Abstractor on File
38 WaynesboroNo Abstractor on FileGloucester Droll's Express
39 WilliamsburgTaylor Abstract, Droll's ExpressGoochland Powhatan Title, Greater Richmond Abstract
40 WinchesterIndependence Title, Jefferson TitleGrayson No Abstractor on File
41Greene Jennifer Coffey
42Greensville No Abstractor on File
43Halifax Trinity Title
44Hanover Powhatan Title, Terry's Title and Abstract, Greater Richmond Abstract
45Henrico Powhatan Title, Greater Richmond Abstract
46Henry No Abstractor on File
47Highland No Abstractor on File
48Isle of Wight Taylor Abstract, Droll's Express, Suffolk Title
49James City Taylor Abstract, Droll's Express, Greater Richmond Abstract, Eastern Virginia Title
50King and Queen Greater Richmond Abstract
51King George Terry's Title and Abstract
52King William Powhatan Title, Greater Richmond Abstract
53Lancaster No Abstractor on File
54Lee No Abstractor on File
55Loudoun Independence Title, Jefferson Title
56Louisa Powhatan Title, Terry's Title and Abstract, Jennifer Coffey
57Lunenburg No Abstractor on File
58Madison Terry's Title and Abstract, Jennifer Coffey
59Mathews Droll's Express
60Mecklenburg No Abstractor on File
61Middlesex No Abstractor on File
62Montgomery No Abstractor on File
63Nelson Jennifer Coffey
64New Kent Powhatan Title, Droll's Express, Greater Richmond Abstract
65NorfolkDroll's Express
66Northampton Droll's Express, Shore Title, LLC
67Northumberland No Abstractor on File
68Nottoway No Abstractor on File
69Orange Terry's Title and Abstract, Jennifer Coffey
70Page No Abstractor on File
71Patrick No Abstractor on File
72Pittsylvania Trinity Title
73Powhatan Powhatan Title, Greater Richmond Abstract
74Prince Edward No Abstractor on File
75Prince George Powhatan Title, Greater Richmond Abstract
76Prince William Independence Title, Jefferson Title
77Pulaski No Abstractor on File
78Rappahannock No Abstractor on File
79Richmond Terry's Title and Abstract
80Roanoke Trinity Title, Suffolk Title, Gail Browning
81Rockbridge Trinity Title
82Rockingham No Abstractor on File
83Russell No Abstractor on File
84Scott No Abstractor on File
85Shenandoah No Abstractor on File
86Smyth No Abstractor on File
87Southampton Droll's Express, Suffolk Title
88Spotsylvania Independence Title, Terry's Title and Abstract
89Stafford Independence Title, Jefferson Title, Terry's Title and Abstract
90Surry Droll's Express
91Sussex Droll's Express
92Tazewell No Abstractor on File
93Warren Independence Title
94Washington No Abstractor on File
95Westmoreland Terry's Title and Abstract
96Wise No Abstractor on File
97Wythe No Abstractor on File
98York Taylor Abstract, Droll's Express
Sheet3
Cell Formulas
RangeFormula
E5E5=IFERROR(IF(D5="",M2,INDEX($M$2:$M$98,MATCH(D5,$L$2:$L$98,0))),M2)
E13E13=IFERROR(IF(D13="",J2,INDEX($J$2:$J$40,MATCH(D13,$I$2:$I$40,0))),J2)
Cells with Data Validation
CellAllowCriteria
D5List=$L$2:$L$98
D13List=$I$2:$I$40
 
Upvote 0
Solution

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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