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

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,215,447
Messages
6,124,907
Members
449,195
Latest member
Stevenciu

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