Excel Formula: Extract Street Number, City and Zip without Comma

unknownymous

Board Regular
Joined
Sep 19, 2017
Messages
249
Office Version
  1. 2016
Platform
  1. Windows
Hi Gurus,

Do you have any idea on how I can easily extract the details for a French address?

Example is: SAINT LEONARD 56200 ST MARTIN SUR OUST

SAINT LEONARD
56200​
ST MARTIN SUR OUST

Any help will be much appreciated. :)

Regards!
 
This one is working.

Also, i have this one last sample of address format:
10 AVENUE DU 1ER DPG 57260 DIEUZE

The postal code is located at the most end of the address.

This will work as shown in my samples.

Word of advice, you should post Various samples of all possible different Text strings in your First post, instead of "trickling" the information one piece at a time, so helpers have a Full picture of your requirements as not to need to keep spending time amending formulas.

NOTE: B Column formula Won't populate until C Column populates.

Book3.xlsx
ABCD
1Address
2SAINT LEONARD 56200 ST MARTIN SUR OUSTSAINT LEONARD56200ST MARTIN SUR OUST
31 BOULEVARD DE LA VICTOIRE 49300 CHOLET1 BOULEVARD DE LA VICTOIRE49300CHOLET
412345 SAINT LEONARD 00009 ST MARTIN12345 SAINT LEONARD00009ST MARTIN
510 AVENUE DU 1ER DPG 57260 DIEUZE10 AVENUE DU 1ER DPG57260DIEUZE
6123 AVENUE DU 234AB 90000 CHOLET123 AVENUE DU 234AB90000CHOLET
7124 AVENUE DU 78234AB 00120 ST MARTIN124 AVENUE DU 78234AB00120ST MARTIN
Sheet1030
Cell Formulas
RangeFormula
B2:B7B2=LEFT(A2,FIND(C2,A2)-2)
C2:C7C2=TEXT(LOOKUP(9^9,1/(1/MID(A2,ROW($1:$99),7))),"00000")
D2:D7D2=MID(A2,LEN(B2)+LEN(C2)+3,99)
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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