VLookup Simple but wont work

babypink2807

New Member
Joined
Jul 13, 2015
Messages
41
Office Version
  1. 2016
I have been at this all day, and embarrased about it and so frustrated. All I want is for the Vlookup to pull through a street address on another sheet. To start with the formula was showing as text, wold not show the value. Then for whatever reason my spreadsheet kept changing from Letter Column Headings to Numbers, dont know why it just did. I then found that I could not copy and paste from the original spreadsheet to a brand new one, again dont ask me why. I closed everything down and back up again. managed to coy and paste my data in to a brand new spreadsheet. My formula still will not pull through the street address. Please can someone help me. All day I have been trying and I cant type in 2750 street addresses, its just too much

Please help :)

Book2.xlsx
ABCDEF
1Account ID NoStreetFirst NameSurnameCompany NameBuilding Name
2ACT10 #N/AAndrewVaughanW A & C M Vaughan High Dovecote
3ACT1000 #N/AJamesBlanchardBlanchard Enterprises New House Farm
4ACT1003 #N/ADavidLeighBirchwood Park Farms Birchwood Park Farm
5ACT1004 #N/ABMycockBirchwood Park Farms Birchwood Park Farm
6ACT1005 #N/AGeneFisherBest Grass Ltd Fishers Farm
7ACT1006 #N/AR & JDymondBattledown Contractors Battledown Farm
8ACT1007 #N/ACarolineBatemanBateman Rural Associates
9ACT1008 #N/ATobyBatemanBateman Rural Associates
10ACT1010 #N/ARobertBallieBallie Haylage Ivy House
11ACT1014 #N/ABrianJonesB T Jones Fields Farm
12ACT1016 #N/ARobSingletonB J Singleton (Alresford) Ranscombe Farm
13ACT1017 #N/ALawrenceRichB G & L D Rich Stud Farm
14ACT1019 #N/AMarkEdwardsB C & D J Edwards & Son Pool Farm
15ACT1020 #N/AJoeLopezB B Grounds Care Ltd Frieze Hall Farm
16ACT1021 #N/ABrianScottB & B Scott Odmoston Farm
17ACT1022 #N/ASarahBrownAvoncrook Farmers Avoncrook Cottage
18ACT1024 #N/ARichardBurroughAshbridge Countryside Services Manor Farm
19ACT1025 #N/AJohnScottArtemis Lane & Agriculture Ltd Crouchlands
20ACT1026 #N/AOwenHutchinsonArrowcruit Limited White House Farm
21ACT1027 #N/APaulAppsApps Grab Hire The Bungalow
22ACT1029 #N/AAndyBallAndy Ball Contractors Hensbury Farm
23ACT1031 #N/AAndrewBaillieAndrew Baillie & Son Blackdub Farm
24ACT10324 #N/AStewartSinclairStewart Sinclair
25ACT1035 #N/AAllenJamesAllen James Hay & Straw Wessex Farm
26ACT1036 #N/AAllanWilsonAllan W J Wilson
27ACT1039 #N/ASimonCornerAequus Land Ltd Malt House
28ACT104 #N/AWilliamStrattonStratton Contracting Siabost Tillygreig
29ACT1040 #N/AJohnAdamsAdams Farm Ltd
30ACT1042 #N/AAlunGlyn JonesActon Farming Company Meadowend Farm
31ACT1043 #N/AAndrewSmithA W Smith & Sons Home Farm
32ACT1046 #N/AADunnA T & A Dunn Newham Barton Farm
33ACT1047 #N/ABenColesA S Coles & Son Park Farm
Sheet1
Cell Formulas
RangeFormula
B2:B33B2=VLOOKUP(A2,Sheet2!A2:S2757,2,FALSE)
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
This is the sheet containing the street address

Book2.xlsx
ABCD
1ID NoStreetCompanyContact
2ACT10W A & C M VaughanAndrew Vaughan
3ACT100Sidmouth RoadStuart Partners LtdRoss Stuart
4ACT1000Blanchard EnterprisesJames Blanchard
5ACT1001Blaiket Mains Dairy Company LimitedRodger Callander
6ACT1002Bleasdale LaneB L & E A Clark & SonB L Clark
7ACT1003Roston CommonBirchwood Park FarmsDavid Leigh
8ACT10033Padfield & Dyke
9ACT1004Roston CommonBirchwood Park FarmsB Mycock
10ACT1005Old Chapel RdBest Grass LtdGene Fisher
11ACT1006Battledown ContractorsR & J Dymond
12ACT10072 Webble GreenBateman Rural AssociatesCaroline Bateman
13ACT10082 Webble GreenBateman Rural AssociatesToby Bateman
14ACT1009Barnacre AlpacasPaul Rippon
15ACT101Sidmouth RoadStuart Partners LtdHarry Bayliss
16ACT1010Ballie HaylageRobert H Ballie
17ACT1011B Watt & SonsRobert Watt
18ACT1012B W S VerrillBaden Verrill
19ACT1013B V & S M JohnsonSusan Mary Johnson
20ACT1014Betchton RoadB T JonesBrian Jones
21ACT1015North Kyme FenB Nicholson & SonAndrew Nicholson
22ACT1016Barnetts Wood LaneB J Singleton (Alresford)Rob Singleton
23ACT1017Blaisdon LaneB G & L D RichLawrence Rich
24ACT1018B D & D G AndrewDerrick Andrew
25ACT1019B C & D J Edwards & SonMark Edwards
26ACT102Sidmouth RoadStuart Partners LtdTroy Stuart
27ACT1020Coxtie Green RoadB B Grounds Care LtdJoe Lopez
28ACT1021B & B ScottBrian Scott
Sheet2
 
Upvote 0
All the values in col A of the formula sheet have a line feed after the text, hence you get #N/A errors.
Either get rid of the line feeds or use
Excel Formula:
=VLOOKUP(CLEAN(A2),Sheet2!A$2:B$2757,2,FALSE)
 
Upvote 0
All your data in column A of sheet1 have an extra line break. And you aren't using absolute referencing on your lookup range. Try this if you don't want to clean up your data in column A.

Book83
ABCDEF
1Account ID NoStreetFirst NameSurnameCompany NameBuilding Name
2ACT10  AndrewVaughanW A & C M Vaughan High Dovecote
3ACT1000  JamesBlanchardBlanchard Enterprises New House Farm
4ACT1003 Roston CommonDavidLeighBirchwood Park Farms Birchwood Park Farm
5ACT1004 Roston CommonBMycockBirchwood Park Farms Birchwood Park Farm
6ACT1005 Old Chapel RdGeneFisherBest Grass Ltd Fishers Farm
7ACT1006  R & JDymondBattledown Contractors Battledown Farm
8ACT1007 2 Webble GreenCarolineBatemanBateman Rural Associates
9ACT1008 2 Webble GreenTobyBatemanBateman Rural Associates
10ACT1010  RobertBallieBallie Haylage Ivy House
11ACT1014 Betchton RoadBrianJonesB T Jones Fields Farm
12ACT1016 Barnetts Wood LaneRobSingletonB J Singleton (Alresford) Ranscombe Farm
13ACT1017 Blaisdon LaneLawrenceRichB G & L D Rich Stud Farm
14ACT1019  MarkEdwardsB C & D J Edwards & Son Pool Farm
15ACT1020 Coxtie Green RoadJoeLopezB B Grounds Care Ltd Frieze Hall Farm
Sheet1
Cell Formulas
RangeFormula
B2:B15B2=IFNA(VLOOKUP(CLEAN(A2),Sheet2!$A$2:$S$2757&"",2,FALSE),"")
 
Upvote 0
This is what happens now when I added the formula
 

Attachments

  • SS 2.JPG
    SS 2.JPG
    114 KB · Views: 8
Upvote 0
Perhaps the ampersand is causing that to be recognized as an array; try this instead
Excel Formula:
=IFNA(VLOOKUP(CLEAN(A2),Sheet2!$A$2:$S$2757,2,FALSE),"")
it's probably going to return a bunch of zeroes though
 
Upvote 0
Perhaps the ampersand is causing that to be recognized as an array; try this instead
Excel Formula:
=IFNA(VLOOKUP(CLEAN(A2),Sheet2!$A$2:$S$2757,2,FALSE),"")
it's probably going to return a bunch of zeroes though
Its all blank, nothing is in my column. All that data is text, and I think I may believe that a link break is a hidden "return", there isnt one. I copied and pasted both sets of data from the old spreadsheet in to a brand new one and "values" when I pasted, so it is just raw data. Honestly its driving me nuts
 
Upvote 0
Try posting an XL2BB of your 2 sheets again? I suppose your calculation options under the formula tab is set to automatic?
 
Upvote 0
Sheet one is the sheet I would like to pull the address through to. Ihave removed formulas and the column is now blank. To enter my formulas I use the Equal sign and then follow the automatice guidance

Book2.xlsx
ABCDEFG
1Account ID NoStreetFirst NameSurnameCompany NameBuilding NameVillage
2ACT10 AndrewVaughanW A & C M Vaughan High Dovecote Walton
3ACT1000 JamesBlanchardBlanchard Enterprises New House Farm Southmoor
4ACT1003 DavidLeighBirchwood Park Farms Birchwood Park Farm Roston
5ACT1004 BMycockBirchwood Park Farms Birchwood Park Farm Roston
6ACT1005 GeneFisherBest Grass Ltd Fishers Farm Freethorpe
7ACT1006 R & JDymondBattledown Contractors Battledown Farm Shebbear
8ACT1007 CarolineBatemanBateman Rural Associates Membury
9ACT1008 TobyBatemanBateman Rural Associates Membury
10ACT1010 RobertBallieBallie Haylage Ivy House Kirmond Le Mire
11ACT1014 BrianJonesB T Jones Fields Farm Betchton
12ACT1016 RobSingletonB J Singleton (Alresford) Ranscombe Farm Bighton
13ACT1017 LawrenceRichB G & L D Rich Stud Farm Blaisdon
14ACT1019 MarkEdwardsB C & D J Edwards & Son Pool Farm Melverley
15ACT1020 JoeLopezB B Grounds Care Ltd Frieze Hall Farm South Weald
16ACT1021 BrianScottB & B Scott Odmoston Farm
17ACT1022 SarahBrownAvoncrook Farmers Avoncrook Cottage
18ACT1024 RichardBurroughAshbridge Countryside Services Manor Farm Damerham
19ACT1025 JohnScottArtemis Lane & Agriculture Ltd Crouchlands Kirdford
20ACT1026 OwenHutchinsonArrowcruit Limited White House Farm
21ACT1027 PaulAppsApps Grab Hire The Bungalow Horne
22ACT1029 AndyBallAndy Ball Contractors Hensbury Farm Bere Ferrers
23ACT1031 AndrewBaillieAndrew Baillie & Son Blackdub Farm
24ACT10324 StewartSinclairStewart SinclairFirth
25ACT1035 AllenJamesAllen James Hay & Straw Wessex Farm Sherborne Causeway
26ACT1036 AllanWilsonAllan W J Wilson Fearn
27ACT1039 SimonCornerAequus Land Ltd Malt House Longnor
28ACT104 WilliamStrattonStratton Contracting Siabost Tillygreig Udny
29ACT1040 JohnAdamsAdams Farm Ltd Cloughmills
30ACT1042 AlunGlyn JonesActon Farming Company Meadowend Farm Acton
31ACT1043 AndrewSmithA W Smith & Sons Home Farm Withcall
32ACT1046 ADunnA T & A Dunn Newham Barton Farm Newham
33ACT1047 BenColesA S Coles & Son Park Farm Bloxham
34ACT1048 A SJacksonA S & K M Jackson Ripton House Farm Langleydale
35ACT1052 AndrewOxtobyA Oxtoby & Sons Park End Farm Bishop Burton
36ACT1057 CallumDerbyA M Davies & Co Blackpark Farm
37ACT1058 A M DaviesA M Davies & Co Blackpark Farm
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,987
Members
449,093
Latest member
Mr Hughes

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