ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Split cell values based on content (https://www.excelbanter.com/excel-worksheet-functions/19838-split-cell-values-based-content.html)

mel

Split cell values based on content
 
Hi, we have some cells which contain numbers and words eg. house number and
street name. We need to split the cell so that the numbers are in one column
and the street names are in another column. Is this possible? Thanks

Jason Morin

Take a look at Data Text to columns.

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi, we have some cells which contain numbers and words

eg. house number and
street name. We need to split the cell so that the

numbers are in one column
and the street names are in another column. Is this

possible? Thanks
.


LanceB

Asuming 123 main st in column a1

in b1
=LEFT(A1,FIND(" ",A1)-1)
in c1
=MID(A1,FIND(" ",A1)+1,LEN(A1))

"mel" wrote:

Hi, we have some cells which contain numbers and words eg. house number and
street name. We need to split the cell so that the numbers are in one column
and the street names are in another column. Is this possible? Thanks


mel

Hi Lance, thanks for that. it seems to do the job. Only problem is I've got a
list of hundreds of rows. Can I set the formula for the whole column without
having to click on each row and paste in the formula? it may be obvious but
i'm new to excel.
thanks


"LanceB" wrote:

Asuming 123 main st in column a1

in b1
=LEFT(A1,FIND(" ",A1)-1)
in c1
=MID(A1,FIND(" ",A1)+1,LEN(A1))

"mel" wrote:

Hi, we have some cells which contain numbers and words eg. house number and
street name. We need to split the cell so that the numbers are in one column
and the street names are in another column. Is this possible? Thanks


LanceB

select the two formulas, do an edit copy, select the entire range you want to
copy to and do an edit paste


"mel" wrote:

Hi Lance, thanks for that. it seems to do the job. Only problem is I've got a
list of hundreds of rows. Can I set the formula for the whole column without
having to click on each row and paste in the formula? it may be obvious but
i'm new to excel.
thanks


"LanceB" wrote:

Asuming 123 main st in column a1

in b1
=LEFT(A1,FIND(" ",A1)-1)
in c1
=MID(A1,FIND(" ",A1)+1,LEN(A1))

"mel" wrote:

Hi, we have some cells which contain numbers and words eg. house number and
street name. We need to split the cell so that the numbers are in one column
and the street names are in another column. Is this possible? Thanks



All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com