reverse concatenation

christy_nf

New Member
Joined
Apr 25, 2002
Messages
14
I have a column containing street names, like Water Street and Ocean Pond Road. I need to separate the street type (i.e. Street, Road) into its own column and leave the street name itself in one column. I tried using the "Text to Column" command using a space as the delimiter, but the problem is that some street names have spaces in them and it splits them up. For example, I would get "Ocean" in one column, "Pond" in another column, and "Road" in another column. I do want the "Road" in its own column but I want "Ocean Pond" all in one column. Understand?

Does anyone have any ideas??? Thanks!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You could thy this :
I assume that the street names are in Column A, starting at row 3

-Put the code in B3 and down until the last line
- copy column B en paste the values

=if(Right(A3;4)="Road"; Left(A3;Len(A3)-5);
if(Right(A3;6)="Street"; Left(A3;Len(A3)-7);""))
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,224,247
Messages
6,177,414
Members
452,774
Latest member
Macca1962

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