+ Reply to Thread
Results 1 to 11 of 11

split numbers with space to multiple column

  1. #1
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    split numbers with space to multiple column

    Hi to all,

    i'm having some issues with using text to column to split my data to multiple column.
    I think it may be due to multiple spaces in the value. Would appreciate if someone can advise me or help in it.

    Basically my data is something like 3 3 3 9 5 4

    so i would like each number to be separated and will eventually end up like this.
    3 3 3 9 5 4


    Please help! thanks!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: split numbers with space to multiple column

    First replace two spaces with one space then you can split with space
    Never use Merged Cells in Excel

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: split numbers with space to multiple column

    It may be that the spaces are actually char 160 spaces.

    In Text to Columns try using the Other option and in the little box type ALT 0160 (hold down the ALT key then use the numeric keypad and type 0160).

    The userform will then show you where the splits will appear.

    Click Finish
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: split numbers with space to multiple column

    Hi Sir,

    May I know how do i replace two spaces with once space? I actually tried trim, using ablebits function as well but can't seems to do anything about the spaces.
    The value just remain 3 3 3 9 5 4.

    I have a whole lot of data that is like this so it will be difficult for me to manually remove the spaces. Is there any other way?

    Thanks!

  5. #5
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: split numbers with space to multiple column

    Quote Originally Posted by Tony Valko View Post
    It may be that the spaces are actually char 160 spaces.

    In Text to Columns try using the Other option and in the little box type ALT 0160 (hold down the ALT key then use the numeric keypad and type 0160).

    The userform will then show you where the splits will appear.

    Click Finish
    Hi Tony,

    I tried your method but nothing seems to appear. could it be the problem that i'm using a laptop that doesn't have numeric keypad?

    Thanks!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: split numbers with space to multiple column

    Quote Originally Posted by finalazy View Post
    i'm using a laptop that doesn't have numeric keypad?
    Hmmm...

    I don't have a laptop and don't know what process would be the equivalent of using the numeric keypad. On a desktop machine you MUST use the numeric keypad to produce the char 160 space.

    Maybe this...

    Test the cell to see if it actually does contain a char 160 space.

    A1 = 3 3 3 9 5 4

    Try this formula in B1:

    =ISNUMBER(FIND(CHAR(160),A1))

    This will return either TRUE (it does contain a char 160) or FALSE (it does not contain a char 160).

  7. #7
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: split numbers with space to multiple column

    Quote Originally Posted by Tony Valko View Post
    Hmmm...

    I don't have a laptop and don't know what process would be the equivalent of using the numeric keypad. On a desktop machine you MUST use the numeric keypad to produce the char 160 space.

    Maybe this...

    Test the cell to see if it actually does contain a char 160 space.

    A1 = 3 3 3 9 5 4

    Try this formula in B1:

    =ISNUMBER(FIND(CHAR(160),A1))

    This will return either TRUE (it does contain a char 160) or FALSE (it does not contain a char 160).
    Hi Tony,

    Yes it return TRUE. so should i try your method on a desktop?

    Thanks!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: split numbers with space to multiple column

    Yes, it should work on a desktop machine that has a keyboard with the numeric keypad on the right hand side.

  9. #9
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: split numbers with space to multiple column

    Hi Tony,

    Thanks for the help! i got it resolve =)

  10. #10
    Registered User
    Join Date
    08-18-2016
    Location
    Earth
    MS-Off Ver
    2010 and 2013
    Posts
    64

    Re: split numbers with space to multiple column

    This formula will do the trick. Just put in a cell and drag right. Assumes the cell you want to split is A1

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: split numbers with space to multiple column

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. help to split cell and calculate the numbers into the next column
    By nimv1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2016, 07:19 PM
  2. [SOLVED] Split column before X numbers (as text) in cell
    By JMusch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2015, 05:15 PM
  3. Replies: 4
    Last Post: 11-11-2015, 03:00 PM
  4. [SOLVED] How to replace dash in a column of numbers with a space and add a prefix
    By HH61 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-04-2014, 02:33 PM
  5. [SOLVED] Unable to split text and numbers into Separate Cells that have no space
    By BDavis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-21-2013, 04:39 PM
  6. split column string data and add numbers
    By gpatel in forum Excel General
    Replies: 6
    Last Post: 12-25-2011, 10:37 PM
  7. Split column into 2 based on space
    By shmee150 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2009, 12:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1