+ Reply to Thread
Results 1 to 3 of 3

Formula to split Text from Numbers in cell

  1. #1
    John Ortt
    Guest

    Formula to split Text from Numbers in cell

    Hi everyone

    I have a column of data as follows

    Joe Bloggs 995.1
    Fred 22.6
    James Brian Jones 333.54
    Ted Baker 3875.34
    etc

    The name can be any number of words and the size of the number changes with
    each entry.

    Is there any way to split the text and numbers into two separate columns
    using a code?

    I tried using the search command with an isnumeric inside but to no
    avail......

    I also thought of looking for a space from the right hand side but I don't
    know how to do it.

    Any suggestions?

    Thanks

    John Ortt



  2. #2
    Bob Phillips
    Guest

    Re: Formula to split Text from Numbers in cell

    =LEFT(A1,FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1,"
    ",""))))-1)

    and

    =MID(A1,FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1,"
    ",""))))+1,255)

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "John Ortt" <johnortt@noemailsuppliedasdontwantspam.com> wrote in message
    news:448694ba$1_1@glkas0286.greenlnk.net...
    > Hi everyone
    >
    > I have a column of data as follows
    >
    > Joe Bloggs 995.1
    > Fred 22.6
    > James Brian Jones 333.54
    > Ted Baker 3875.34
    > etc
    >
    > The name can be any number of words and the size of the number changes

    with
    > each entry.
    >
    > Is there any way to split the text and numbers into two separate columns
    > using a code?
    >
    > I tried using the search command with an isnumeric inside but to no
    > avail......
    >
    > I also thought of looking for a space from the right hand side but I don't
    > know how to do it.
    >
    > Any suggestions?
    >
    > Thanks
    >
    > John Ortt
    >
    >




  3. #3
    John Ortt
    Guest

    Re: Formula to split Text from Numbers in cell

    Worked a treat, thanks Bob.


    "Bob Phillips" <bob.NGs@somewhere.com> wrote in message
    news:eHlILRhiGHA.3440@TK2MSFTNGP02.phx.gbl...
    > =LEFT(A1,FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1,"
    > ",""))))-1)
    >
    > and
    >
    > =MID(A1,FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1,"
    > ",""))))+1,255)
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (replace somewhere in email address with gmail if mailing direct)
    >
    > "John Ortt" <johnortt@noemailsuppliedasdontwantspam.com> wrote in message
    > news:448694ba$1_1@glkas0286.greenlnk.net...
    >> Hi everyone
    >>
    >> I have a column of data as follows
    >>
    >> Joe Bloggs 995.1
    >> Fred 22.6
    >> James Brian Jones 333.54
    >> Ted Baker 3875.34
    >> etc
    >>
    >> The name can be any number of words and the size of the number changes

    > with
    >> each entry.
    >>
    >> Is there any way to split the text and numbers into two separate columns
    >> using a code?
    >>
    >> I tried using the search command with an isnumeric inside but to no
    >> avail......
    >>
    >> I also thought of looking for a space from the right hand side but I
    >> don't
    >> know how to do it.
    >>
    >> Any suggestions?
    >>
    >> Thanks
    >>
    >> John Ortt
    >>
    >>

    >
    >




+ 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