+ Reply to Thread
Results 1 to 4 of 4

Help with Col. split

  1. #1
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    Help with Col. split

    Hi Group,
    I have few sheets with col containing data " 123 4567"
    I want this to be split in 2 dif col where space occurs.
    sometimes there are 4 digits in first set like "1234 5678"
    Any help would be apprecited.
    Thanks
    Saziz

  2. #2
    Tom Ogilvy
    Guest

    RE: Help with Col. split

    select the column,

    do Data=>Text to Columns

    selected delimited

    then select space as the delimiter

    --
    Regards,
    Tom Ogilvy


    "saziz" wrote:

    >
    > Hi Group,
    > I have few sheets with col containing data " 123 4567"
    > I want this to be split in 2 dif col where space occurs.
    > sometimes there are 4 digits in first set like "1234 5678"
    > Any help would be apprecited.
    > Thanks
    > Saziz
    >
    >
    > --
    > saziz
    > ------------------------------------------------------------------------
    > saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
    > View this thread: http://www.excelforum.com/showthread...hreadid=570887
    >
    >


  3. #3
    Dave Peterson
    Guest

    Re: Help with Col. split

    Say your string is in A1.
    Put this in B1: =LEFT(TRIM(A1),SEARCH(" ",TRIM(A1))-1)
    put this in C1: =MID(TRIM(A1),SEARCH(" ",TRIM(A1))+1,255)

    if you want real numbers (not strings), use these:
    Put this in B1: =--LEFT(TRIM(A1),SEARCH(" ",TRIM(A1))-1)
    put this in C1: =--MID(TRIM(A1),SEARCH(" ",TRIM(A1))+1,255)



    saziz wrote:
    >
    > Hi Group,
    > I have few sheets with col containing data " 123 4567"
    > I want this to be split in 2 dif col where space occurs.
    > sometimes there are 4 digits in first set like "1234 5678"
    > Any help would be apprecited.
    > Thanks
    > Saziz
    >
    > --
    > saziz
    > ------------------------------------------------------------------------
    > saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
    > View this thread: http://www.excelforum.com/showthread...hreadid=570887


    --

    Dave Peterson

  4. #4
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    Thank you Tom & Dave.

    Both the solutins worked.
    Thank you
    Saziz

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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