Extract province (list included in different sheet) from Address (Advanced fussy search)

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to the forum!

Try this in B1:

=LOOKUP(2^16,SEARCH(province!$A$2:$A$204,A1),province!$A$2:$A$204)

There's a possibility of error if a province name can be found in a street name, or if there are misspellings, but it should mostly work for you.
 
Last edited:
Upvote 0
Thanks a ton Eric. You really saved me a lot of work

Now Im dealing with mis-spelled words using the resultant coloumn as a helper coloumn and using VLOOKUP. Im sure there is a smarter way to this combining my vlookup to the existing formula =LOOKUP(2^16,SEARCH(province!$A$2:$A$204,A1),province!$A$2:$A$204)


Also how to reference a growing list (table) instead of
province!$A$2:$A$204, where when list grows.

=LOOKUP(2^16,SEARCH(placeDB,[@Address]),province!$A$2:$A$12) Works, but
=LOOKUP(2^16,SEARCH(placeDB,[@Address]),placeDB) doesnot work. :( is there a way to name the [result_vector], so i dont want to edit everytime, as my list grows.
 
Upvote 0
Updated work
https://drive.google.com/file/d/1gEUX8QJ8rugKYACuYRISCAI3MmWlOM5i/view?usp=sharing


Thanks a ton Eric. You really saved me a lot of work

Now Im dealing with mis-spelled words using the resultant coloumn as a helper coloumn and using VLOOKUP. Im sure there is a smarter way to this combining my vlookup to the existing formula =LOOKUP(2^16,SEARCH(province!$A$2:$A$204,A1),province!$A$2:$A$204)


Also how to reference a growing list (table) instead of
province!$A$2:$A$204, where when list grows.

=LOOKUP(2^16,SEARCH(placeDB,[@Address]),province!$A$2:$A$12) Works, but
=LOOKUP(2^16,SEARCH(placeDB,[@Address]),placeDB) doesnot work. :( is there a way to name the [result_vector], so i dont want to edit everytime, as my list grows.
 
Upvote 0
It looks like you made a table out of your addresses, but did you make one out of your province list? I used this formula, with the province list in a table named Table3:

=LOOKUP(2^16,SEARCH(Table3[province],[@Address]),Table3[province])
 
Upvote 0
thanks again eric

It looks like you made a table out of your addresses, but did you make one out of your province list? I used this formula, with the province list in a table named Table3:

=LOOKUP(2^16,SEARCH(Table3[province],[@Address]),Table3[province])
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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