Computing.Net > Forums > Office Software > Vlookup problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Vlookup problem

Reply to Message Icon

Name: khorse
Date: August 25, 2009 at 18:44:01 Pacific
OS: Windows Vista
Subcategory: Microsoft Office
Comment:

I work with addresses, i have a column named ADDRESS and another column SUBURB,and a list of all the suburbs in another sheet. But the data i get the street address and the Suburb are in the one column under ADDRESS.So I want to do a vlookup looking through the ADDRESS column for suburbs in my SUBURB list. But i cant do it because i cant use exact match as the street address is in the same columns.



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: August 25, 2009 at 18:58:39 Pacific
Reply:

Why don't you separate the address from the suburb and put them in 2 different columns?

You didn't give us any details as to how your data looks so we can't offer too much in the way of suggestions to help you accomplish that.


0

Response Number 2
Name: khorse
Date: August 25, 2009 at 20:26:23 Pacific
Reply:

here is a example i have all these in my address column:
3 Oxford Crt Southside
4 Garnet Crt Southside
17 Crown Crt Stephens
19 Sonama Crt Stephens
21 Crown Crt Stephens
21 Crown Crt Stephens
25 Washington Crt Stephens
7 Rina Crt Stephens
7 Rina Crt Stephens
Unit 3 7 Flint Crt Stephens
810 Figwood Crt Stockleigh
15 Philip Crt Summerholm

Now most of the Suburbs is after the address abreviation, (e.g Crt) is there a way i can a vlookup comparing the address to my suburb master list so it picks up the Suburb in the address??


0

Response Number 3
Name: DerbyDad03
Date: August 26, 2009 at 06:34:40 Pacific
Reply:

Piece of cake...

With your address data in A1:A12, your VLOOKUP table_array in C1:C12, put this in B1 and drag it down. It will VLOOKUP the suburb in the 1st column of the table_array and pull data from the 2nd.

=VLOOKUP(MID(SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))),FIND("^",SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))+1,256),$C$1:$D$12,2,0)

The MID() formula buried in there will pull the out last word in a text string - the suburb - assuming the string doesn't have any trailing spaces.

No, I didn't write it...Google is my friend.


0

Response Number 4
Name: khorse
Date: August 26, 2009 at 13:52:28 Pacific
Reply:

Will this still work if the suburb is not the last word in the street address??


0

Response Number 5
Name: DerbyDad03
Date: August 26, 2009 at 18:12:05 Pacific
Reply:

Uh...did you test it to see for yourself?

When you're done testing it, look here:

http://www.ozgrid.com/Excel/extract...


P.S. Feel free to drop a "thanks" in here someplace, especially before you ask for more help.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

Sum multiple worksheets b... Reference to Sheet Name f...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Vlookup problem

Copy & Paste Problems in Excel www.computing.net/answers/office/copy-amp-paste-problems-in-excel/3992.html

Excel Sumif Problem www.computing.net/answers/office/excel-sumif-problem/1431.html

Alternative to VLOOKUP? (Excel2k) www.computing.net/answers/office/alternative-to-vlookup-excel2k/633.html