Text to columns up to a number

aisko

New Member
Joined
Jan 30, 2012
Messages
5
I am trying to separate a column that contains a company name followed by the street address in the same cell.

Is there a way to separate these into two columns? The street address is not always the same number of characters from the left or right of the cell. Below is an example of how they appear now. I would like to separate the 123 Main St into a separate column via formula to copy down for the entire column.

Example:

Company Name 123 Main St


Thank you for any assistance you may be able to provide.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Can it be assumed that you company names won't contain numbers?

If so, here you go:

Excel Workbook
ABC
1Company Name 123 Main StCompany Name123 Main St
Sheet1
 
Last edited:
Upvote 0
Amazing, thank you.

It works for most of them. I am getting a #VALUE! error on several.

Could it be a formatting issue?

In one example, the same company has a different address in two different rows. The one containing "Company, Inc. 123 W Monroe" worked while the one containing "Company, Inc. 1234 Edgewood Road NE" did not work.

There are several others that did not work for any of the various addresses. Would there be an issue with the formula if the address portion of the first cell contains numbers in several locations, for example 745 7th Avenue.

I am hoping it is just that some cells are formatted differently than others.

Do you have any thoughts?
 
Upvote 0
I copied the formula down. I have about 1000 rows of data. It worked for roughly 40% of those rows.

Is there any reason why the rest would not work? Formatting of the original cell?

I can't seem to figure out why the replace formula is returning an error on some and not others.
 
Upvote 0
That formula won't even error on an empty cell. Did you change anything in the formula?
 
Upvote 0
Ah, you are correct. I left off the second 0. I should have just copied and pasted your formulas.

Thank you so much for your help.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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