Formula to remove text from an address in a cell

sobrien1234

Board Regular
Joined
May 10, 2016
Messages
175
Office Version
  1. 365
Platform
  1. Windows
I have a list of addresses which are all different in length. In column A I have the full address and in column B I have half the address (i.e. town/suburb and postcode). I need a formula to delete all the text in column B from the text in column A. Example below:
Column A Column B
444 David Street ALBURY NSW 2640 ALBURY NSW 2640
Suite 105, 350 George Street SYDNEY NSW 2000 SYDNEY NSW 2000
Shop 1A 24 Belgrave Street KOGARAH NSW 2217 KOGARAH NSW 2217


If formula works the answers in column C would be:
444 David Street
Suite 105, 350 George Street
Shop 1A 24 Belgrave Street

Thanks In advance!!:confused::confused:
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
=LEFT(A1,FIND("Street",A1)+5)

Works for your example. This will not work if you have Drive, Road, etc. instead of street.
 
Upvote 0

Book1
AB
25444 David Street ALBURY NSW 2640 ALBURY NSW 2640444 David Street
26Suite 105, 350 George Street SYDNEY NSW 2000 SYDNEY NSW 2000Suite 105, 350 George Street
27Shop 1A 24 Belgrave Street KOGARAH NSW 2217 KOGARAH NSW 2217Shop 1A 24 Belgrave Street
sheet1
Cell Formulas
RangeFormula
B25=LEFT(A25,SEARCH("street",A25,1)+6)
 
Upvote 0
Thanks but you are right - doesn't work for roads and avenues etc. and tem on the here's plenty of them on the list
 
Upvote 0
It works great for me, in what way does it not work for you?

Going off of your original description
In column A I have the full address and in column B I have half the address (i.e. town/suburb and postcode). I need a formula to delete all the text in column B from the text in column A


Unknown
ABC
1Full AddressHalf AddressFormula
2444 David Street ALBURY NSW 2640ALBURY NSW 2640444 David Street
3Suite 105, 350 George Street SYDNEY NSW 2000SYDNEY NSW 2000Suite 105, 350 George Street
4Shop 1A 24 Belgrave Street KOGARAH NSW 2217KOGARAH NSW 2217Shop 1A 24 Belgrave Street
Sheet1
Cell Formulas
RangeFormula
C2=TRIM(SUBSTITUTE(A2,B2,""))
C3=TRIM(SUBSTITUTE(A3,B3,""))
C4=TRIM(SUBSTITUTE(A4,B4,""))
 
Last edited:
Upvote 0
fantastic!! Sorry for confusion - there was an extra space between the state and the postcode in column B but I have deleted it and it works great. Thanks a million!!:)
 
Upvote 0

Forum statistics

Threads
1,223,731
Messages
6,174,173
Members
452,548
Latest member
Enice Anaelle

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