Extract name from a column in different sheet

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I have a list of addresses in column A of Sheet 1 in a file (please see the 9 rows below).

I will regularly need to populate the 'City' name in column B of Sheet 1, using the City names from column D of Sheet 2.

And I've been advised to do this manually, but I'm sure there's a formula that can do this!? Can anyone please advise?

Please find below sample data for Sheet 1 - there are only 9 rows (3 rows of 3 addresses).

I have also pasted data from Sheet 2 below (it's just column D, with the names of the Cities that I have to manually populate into column B of Sheet 1. I'd be grateful if anyone could help with this?

Sheet 1

AddressLocation
24 Place des Reflets La Defense, Paris, France
24 Place des Reflets La Defense, Paris, France
24 Place des Reflets La Defense, Paris, France
50 E Randolph Street, Suite 7100, Chicago, Illinois, USA
50 E Randolph Street, Suite 7100, Chicago, Illinois, USA
50 E Randolph Street, Suite 7100, Chicago, Illinois, USA
10 St. James'S Square, London, United Kingdom
10 St. James'S Square, London, United Kingdom
10 St. James'S Square, London, United Kingdom

Sheet 2

Paris
Paris
Paris
Chicago
Chicago
Chicago
London
London
London




 
try below,

Book1
AB
1AddressLocation
224 Place des Reflets La Defense, Paris, FranceParis
324 Place des Reflets La Defense, Paris, FranceParis
424 Place des Reflets La Defense, Paris, FranceParis
550 E Randolph Street, Suite 7100, Chicago, Illinois, USAChicago
650 E Randolph Street, Suite 7100, Chicago, Illinois, USAChicago
750 E Randolph Street, Suite 7100, Chicago, Illinois, USAChicago
810 St. James'S Square, London, United KingdomLondon
910 St. James'S Square, London, United KingdomLondon
1010 St. James'S Square, London, United KingdomLondon
Sheet2
Cell Formulas
RangeFormula
B2:B10B2=INDEX(Sheet7!$D$2:$D$110, MATCH(1, COUNTIF(A2, "*"&Sheet7!$D$2:$D$110&"*"), 0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,827
Messages
6,181,197
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