Extract City from Single Cell with Different Delimiters on Either Side - with Formula!

ttootell

New Member
Joined
May 6, 2016
Messages
8
Formula Challenge!

This one is out of my league.

For an ASAP work project, I need to extract an a physical address (including multiple spaces) from a single cell, with two different (but same) delimiters on either side, and drop into new columns. See example below. I've tried two different snippets from this and other forums - with various combinations of Find, Mid, Search, etc. Can you help?

4320 McConnell Rd 2A Johnsonville UNITED STATES NC 27405
9986 Bay Drive Las Vegas UNITED STATES NV 89122

I have three spaces on the left, and a single space and UNITED on the right as unique static delimiters.

I was able to extract address from left, and ZIP from right. Still working on State... if you can help with that, bonus Excel karma for you!

Thank you in advance. Happy Friday!
 
Maybe?

ABC
14320 McConnell Rd 2A Johnsonville UNITED STATES NC 27405Johnsonville
29986 Bay Drive Las Vegas UNITED STATES NV 89122Las Vegas

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet18

Worksheet Formulas
CellFormula
C1=TRIM(MID(A1,FIND(" ",A1),FIND("UNITED",A1)-FIND(" ",A1)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,

This should work for you:


Excel 2010
AB
14320 McConnell Rd 2A Johnsonville UNITED STATES NC 27405Johnsonville
29986 Bay Drive Las Vegas UNITED STATES NV 89122Las Vegas
Sheet1
Cell Formulas
RangeFormula
B1=MID(A1,FIND(" ",A1)+3,SEARCH("UNITED",A1)-FIND(" ",A1)-4)

B1 formula copied down.
PLEASE NOTE: the " " in the formula actually is "3 spaces" as you described.
 
Last edited:
Upvote 0
Hi,

This should work for you:

Excel 2010
AB
14320 McConnell Rd 2A Johnsonville UNITED STATES NC 27405Johnsonville
29986 Bay Drive Las Vegas UNITED STATES NV 89122Las Vegas

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B1=MID(A1,FIND(" ",A1)+3,SEARCH("UNITED",A1)-FIND(" ",A1)-4)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


B1 formula copied down.
PLEASE NOTE: the " " in the formula actually is "3 spaces" as you described.

This worked - I am so very thankful for your solution.
THANK YOU!
 
Upvote 0
This worked - I am so very thankful for your solution.
THANK YOU!

You're welcome, welcome to the forum.

I think Eric W's formula works as well if you make sure you put "3 spaces" in the formula.
 
Upvote 0

Forum statistics

Threads
1,215,886
Messages
6,127,572
Members
449,385
Latest member
KMGLarson

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