ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   moving numbers from text into new cells (https://www.excelbanter.com/excel-programming/416241-re-moving-numbers-text-into-new-cells.html)

MSweetG222

moving numbers from text into new cells
 
Phreakenstien,

Have you considered using "Text To Columns" using the "space" deliminter?

Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlNone, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=False, Space:=True, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1)), TrailingMinusNumbers:=True

Hope that helps.

--
Thx
MSweetG222



"phreakenstein" wrote:

example
before
a b
Sam 12
Luke 19
John 13

After
a b
Sam 12
Luke 19
John 13



All times are GMT +1. The time now is 10:29 AM.

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