+ Reply to Thread
Results 1 to 5 of 5

Extracting numbers of a string

Hybrid View

  1. #1
    Apaxe2000
    Guest

    Extracting numbers of a string

    Hi.

    I have many strings like 10+33+98+3+10 and 3+45+33+21+1, each one in a
    diferent field of a sheet.

    I want pass the values to individual fields, like A1 (10); B1 (33); C1
    (98); D1 (3); E1 (10);

    I try with MID, LEFT and RIGHT combinate, but the length of the string
    is different in each string. I need something that remove the "+"
    between the numbers.

    Thanks,
    Apaxe2000


  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Use Text to Columns and the "+" as the delimiter.

    Using your sample data in A1 and A2. Select A1 & A2. Go to Data, Text to Columns. Select "Delimited" as your option and click next. Select the checkbox next to Other and type in the + in the space provided and click next and then Finish.


    HTH

    Steve

  3. #3
    Apaxe2000
    Guest

    Re: Extracting numbers of a string

    Hello.

    Thanks for helpme.

    Apaxe2000


  4. #4
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    You're welcome.

    Steve

  5. #5
    Peo Sjoblom
    Guest

    Re: Extracting numbers of a string

    Use data>text to columns, delimited, click next and select other delimiter
    and put in the plus sign, then click finish. Make sure the columns to the
    right are empty before you do this

    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com



    "Apaxe2000" <apaxe2000Milhoes@gmail.com> wrote in message
    news:1147275426.411668.292300@j73g2000cwa.googlegroups.com...
    > Hi.
    >
    > I have many strings like 10+33+98+3+10 and 3+45+33+21+1, each one in a
    > diferent field of a sheet.
    >
    > I want pass the values to individual fields, like A1 (10); B1 (33); C1
    > (98); D1 (3); E1 (10);
    >
    > I try with MID, LEFT and RIGHT combinate, but the length of the string
    > is different in each string. I need something that remove the "+"
    > between the numbers.
    >
    > Thanks,
    > Apaxe2000
    >




+ 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