+ Reply to Thread
Results 1 to 43 of 43

select a string of characters

  1. #1
    Did
    Guest

    Re: select a string of characters

    Think there was a cross over in the posting, this only works if the sting of
    characters I want is the first thing in the cell (which sometimes it is), I
    would love to be able for it to find and extract no matter where it is in the
    field, as long as it is 2 letters, 6 numbers and a single letter.

    "Bob Phillips" wrote:

    > Do you want to break it down into component part? If so then use
    >
    > B2: =IF(A2<>"",LEFT(A2,2),"")
    > C2: =IF(A2<>"",MID(A2,3,6),"")
    > D2: =IF(A2<>"",RIGHT(A2,1),"")
    >
    > and copy down
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The

    > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im

    > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  2. #2
    Biff
    Guest

    Re: select a string of characters

    Hi!

    For the best possible solution you'll need to provide several examples.

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The
    > string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  3. #3
    Bob Phillips
    Guest

    Re: select a string of characters

    That is going to be difficult, even with VBA.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > Think there was a cross over in the posting, this only works if the sting

    of
    > characters I want is the first thing in the cell (which sometimes it is),

    I
    > would love to be able for it to find and extract no matter where it is in

    the
    > field, as long as it is 2 letters, 6 numbers and a single letter.
    >
    > "Bob Phillips" wrote:
    >
    > > Do you want to break it down into component part? If so then use
    > >
    > > B2: =IF(A2<>"",LEFT(A2,2),"")
    > > C2: =IF(A2<>"",MID(A2,3,6),"")
    > > D2: =IF(A2<>"",RIGHT(A2,1),"")
    > >
    > > and copy down
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "Did" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have some large cells with various data, some (not all) contain a

    unique
    > > > string of charaters which I would like to extract to another cell. The

    > > string
    > > > of characters is two alphanumerical then six numerical then one
    > > > alphanumerical. For those in the UK, like National Insurance numbers.

    Im
    > > not
    > > > very good at VB, so would prefer a formula in a cell but beggers can't

    be
    > > > chosers. Thanks for any assistance.

    > >
    > >
    > >




  4. #4
    Biff
    Guest

    Re: select a string of characters

    I think that is going to be very difficult to do!

    Probably going to need VBA. I can't help with that,sorry!

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I can e-mail a few of the fields if you want. Each cell is usally around
    > 600-800 characters long of messages relating to a membership, so a lot of,
    > he
    > said, she said and some where you get things like "casemem no is
    > NR623454C"
    > or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    > and
    > open" its the NR623454C HG674398P BH346799R that I would like to copy
    > to a
    > new column, leaving it blank if the membership no doesn't appear.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> For the best possible solution you'll need to provide several examples.
    >>
    >> Biff
    >>
    >> "Did" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I have some large cells with various data, some (not all) contain a
    >> >unique
    >> > string of charaters which I would like to extract to another cell. The
    >> > string
    >> > of characters is two alphanumerical then six numerical then one
    >> > alphanumerical. For those in the UK, like National Insurance numbers.
    >> > Im
    >> > not
    >> > very good at VB, so would prefer a formula in a cell but beggers can't
    >> > be
    >> > chosers. Thanks for any assistance.

    >>
    >>
    >>




  5. #5
    Did
    Guest

    Re: select a string of characters

    I can e-mail a few of the fields if you want. Each cell is usally around
    600-800 characters long of messages relating to a membership, so a lot of, he
    said, she said and some where you get things like "casemem no is NR623454C"
    or "t/p advised HG674398P won't attend" and "BH346799R to remain linked and
    open" its the NR623454C HG674398P BH346799R that I would like to copy to a
    new column, leaving it blank if the membership no doesn't appear.

    "Biff" wrote:

    > Hi!
    >
    > For the best possible solution you'll need to provide several examples.
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The
    > > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  6. #6
    Biff
    Guest

    Re: select a string of characters

    Here's one possibility that's relatively easy but whether it will work for
    your situation.....

    If you have a list of the known member IDs....

    Put that list in a range of cells and give that range a name like IDs.

    Then use this array formula:

    =INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0))

    Tested and works on cells with 300 characters.

    To return blanks when no ID number is found:

    =IF(ISNA(MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)),"",INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)))

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    >I think that is going to be very difficult to do!
    >
    > Probably going to need VBA. I can't help with that,sorry!
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    >>I can e-mail a few of the fields if you want. Each cell is usally around
    >> 600-800 characters long of messages relating to a membership, so a lot
    >> of, he
    >> said, she said and some where you get things like "casemem no is
    >> NR623454C"
    >> or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    >> and
    >> open" its the NR623454C HG674398P BH346799R that I would like to copy
    >> to a
    >> new column, leaving it blank if the membership no doesn't appear.
    >>
    >> "Biff" wrote:
    >>
    >>> Hi!
    >>>
    >>> For the best possible solution you'll need to provide several examples.
    >>>
    >>> Biff
    >>>
    >>> "Did" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> >I have some large cells with various data, some (not all) contain a
    >>> >unique
    >>> > string of charaters which I would like to extract to another cell. The
    >>> > string
    >>> > of characters is two alphanumerical then six numerical then one
    >>> > alphanumerical. For those in the UK, like National Insurance numbers.
    >>> > Im
    >>> > not
    >>> > very good at VB, so would prefer a formula in a cell but beggers can't
    >>> > be
    >>> > chosers. Thanks for any assistance.
    >>>
    >>>
    >>>

    >
    >




  7. #7
    Bob Phillips
    Guest

    Re: select a string of characters

    Do you want to break it down into component part? If so then use

    B2: =IF(A2<>"",LEFT(A2,2),"")
    C2: =IF(A2<>"",MID(A2,3,6),"")
    D2: =IF(A2<>"",RIGHT(A2,1),"")

    and copy down

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The

    string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im

    not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  8. #8
    Did
    Guest

    Re: select a string of characters

    Think there was a cross over in the posting, this only works if the sting of
    characters I want is the first thing in the cell (which sometimes it is), I
    would love to be able for it to find and extract no matter where it is in the
    field, as long as it is 2 letters, 6 numbers and a single letter.

    "Bob Phillips" wrote:

    > Do you want to break it down into component part? If so then use
    >
    > B2: =IF(A2<>"",LEFT(A2,2),"")
    > C2: =IF(A2<>"",MID(A2,3,6),"")
    > D2: =IF(A2<>"",RIGHT(A2,1),"")
    >
    > and copy down
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The

    > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im

    > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  9. #9
    Biff
    Guest

    Re: select a string of characters

    I think that is going to be very difficult to do!

    Probably going to need VBA. I can't help with that,sorry!

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I can e-mail a few of the fields if you want. Each cell is usally around
    > 600-800 characters long of messages relating to a membership, so a lot of,
    > he
    > said, she said and some where you get things like "casemem no is
    > NR623454C"
    > or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    > and
    > open" its the NR623454C HG674398P BH346799R that I would like to copy
    > to a
    > new column, leaving it blank if the membership no doesn't appear.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> For the best possible solution you'll need to provide several examples.
    >>
    >> Biff
    >>
    >> "Did" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I have some large cells with various data, some (not all) contain a
    >> >unique
    >> > string of charaters which I would like to extract to another cell. The
    >> > string
    >> > of characters is two alphanumerical then six numerical then one
    >> > alphanumerical. For those in the UK, like National Insurance numbers.
    >> > Im
    >> > not
    >> > very good at VB, so would prefer a formula in a cell but beggers can't
    >> > be
    >> > chosers. Thanks for any assistance.

    >>
    >>
    >>




  10. #10
    Bob Phillips
    Guest

    Re: select a string of characters

    That is going to be difficult, even with VBA.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > Think there was a cross over in the posting, this only works if the sting

    of
    > characters I want is the first thing in the cell (which sometimes it is),

    I
    > would love to be able for it to find and extract no matter where it is in

    the
    > field, as long as it is 2 letters, 6 numbers and a single letter.
    >
    > "Bob Phillips" wrote:
    >
    > > Do you want to break it down into component part? If so then use
    > >
    > > B2: =IF(A2<>"",LEFT(A2,2),"")
    > > C2: =IF(A2<>"",MID(A2,3,6),"")
    > > D2: =IF(A2<>"",RIGHT(A2,1),"")
    > >
    > > and copy down
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "Did" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have some large cells with various data, some (not all) contain a

    unique
    > > > string of charaters which I would like to extract to another cell. The

    > > string
    > > > of characters is two alphanumerical then six numerical then one
    > > > alphanumerical. For those in the UK, like National Insurance numbers.

    Im
    > > not
    > > > very good at VB, so would prefer a formula in a cell but beggers can't

    be
    > > > chosers. Thanks for any assistance.

    > >
    > >
    > >




  11. #11
    Did
    Guest

    Re: select a string of characters

    I can e-mail a few of the fields if you want. Each cell is usally around
    600-800 characters long of messages relating to a membership, so a lot of, he
    said, she said and some where you get things like "casemem no is NR623454C"
    or "t/p advised HG674398P won't attend" and "BH346799R to remain linked and
    open" its the NR623454C HG674398P BH346799R that I would like to copy to a
    new column, leaving it blank if the membership no doesn't appear.

    "Biff" wrote:

    > Hi!
    >
    > For the best possible solution you'll need to provide several examples.
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The
    > > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  12. #12
    Biff
    Guest

    Re: select a string of characters

    Here's one possibility that's relatively easy but whether it will work for
    your situation.....

    If you have a list of the known member IDs....

    Put that list in a range of cells and give that range a name like IDs.

    Then use this array formula:

    =INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0))

    Tested and works on cells with 300 characters.

    To return blanks when no ID number is found:

    =IF(ISNA(MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)),"",INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)))

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    >I think that is going to be very difficult to do!
    >
    > Probably going to need VBA. I can't help with that,sorry!
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    >>I can e-mail a few of the fields if you want. Each cell is usally around
    >> 600-800 characters long of messages relating to a membership, so a lot
    >> of, he
    >> said, she said and some where you get things like "casemem no is
    >> NR623454C"
    >> or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    >> and
    >> open" its the NR623454C HG674398P BH346799R that I would like to copy
    >> to a
    >> new column, leaving it blank if the membership no doesn't appear.
    >>
    >> "Biff" wrote:
    >>
    >>> Hi!
    >>>
    >>> For the best possible solution you'll need to provide several examples.
    >>>
    >>> Biff
    >>>
    >>> "Did" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> >I have some large cells with various data, some (not all) contain a
    >>> >unique
    >>> > string of charaters which I would like to extract to another cell. The
    >>> > string
    >>> > of characters is two alphanumerical then six numerical then one
    >>> > alphanumerical. For those in the UK, like National Insurance numbers.
    >>> > Im
    >>> > not
    >>> > very good at VB, so would prefer a formula in a cell but beggers can't
    >>> > be
    >>> > chosers. Thanks for any assistance.
    >>>
    >>>
    >>>

    >
    >




  13. #13
    Bob Phillips
    Guest

    Re: select a string of characters

    Do you want to break it down into component part? If so then use

    B2: =IF(A2<>"",LEFT(A2,2),"")
    C2: =IF(A2<>"",MID(A2,3,6),"")
    D2: =IF(A2<>"",RIGHT(A2,1),"")

    and copy down

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The

    string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im

    not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  14. #14
    Biff
    Guest

    Re: select a string of characters

    Hi!

    For the best possible solution you'll need to provide several examples.

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The
    > string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  15. #15
    Biff
    Guest

    Re: select a string of characters

    Hi!

    For the best possible solution you'll need to provide several examples.

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The
    > string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  16. #16
    Bob Phillips
    Guest

    Re: select a string of characters

    Do you want to break it down into component part? If so then use

    B2: =IF(A2<>"",LEFT(A2,2),"")
    C2: =IF(A2<>"",MID(A2,3,6),"")
    D2: =IF(A2<>"",RIGHT(A2,1),"")

    and copy down

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The

    string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im

    not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  17. #17
    Did
    Guest

    Re: select a string of characters

    I can e-mail a few of the fields if you want. Each cell is usally around
    600-800 characters long of messages relating to a membership, so a lot of, he
    said, she said and some where you get things like "casemem no is NR623454C"
    or "t/p advised HG674398P won't attend" and "BH346799R to remain linked and
    open" its the NR623454C HG674398P BH346799R that I would like to copy to a
    new column, leaving it blank if the membership no doesn't appear.

    "Biff" wrote:

    > Hi!
    >
    > For the best possible solution you'll need to provide several examples.
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The
    > > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  18. #18
    Biff
    Guest

    Re: select a string of characters

    I think that is going to be very difficult to do!

    Probably going to need VBA. I can't help with that,sorry!

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I can e-mail a few of the fields if you want. Each cell is usally around
    > 600-800 characters long of messages relating to a membership, so a lot of,
    > he
    > said, she said and some where you get things like "casemem no is
    > NR623454C"
    > or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    > and
    > open" its the NR623454C HG674398P BH346799R that I would like to copy
    > to a
    > new column, leaving it blank if the membership no doesn't appear.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> For the best possible solution you'll need to provide several examples.
    >>
    >> Biff
    >>
    >> "Did" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I have some large cells with various data, some (not all) contain a
    >> >unique
    >> > string of charaters which I would like to extract to another cell. The
    >> > string
    >> > of characters is two alphanumerical then six numerical then one
    >> > alphanumerical. For those in the UK, like National Insurance numbers.
    >> > Im
    >> > not
    >> > very good at VB, so would prefer a formula in a cell but beggers can't
    >> > be
    >> > chosers. Thanks for any assistance.

    >>
    >>
    >>




  19. #19
    Did
    Guest

    Re: select a string of characters

    Think there was a cross over in the posting, this only works if the sting of
    characters I want is the first thing in the cell (which sometimes it is), I
    would love to be able for it to find and extract no matter where it is in the
    field, as long as it is 2 letters, 6 numbers and a single letter.

    "Bob Phillips" wrote:

    > Do you want to break it down into component part? If so then use
    >
    > B2: =IF(A2<>"",LEFT(A2,2),"")
    > C2: =IF(A2<>"",MID(A2,3,6),"")
    > D2: =IF(A2<>"",RIGHT(A2,1),"")
    >
    > and copy down
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The

    > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im

    > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  20. #20
    Bob Phillips
    Guest

    Re: select a string of characters

    That is going to be difficult, even with VBA.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > Think there was a cross over in the posting, this only works if the sting

    of
    > characters I want is the first thing in the cell (which sometimes it is),

    I
    > would love to be able for it to find and extract no matter where it is in

    the
    > field, as long as it is 2 letters, 6 numbers and a single letter.
    >
    > "Bob Phillips" wrote:
    >
    > > Do you want to break it down into component part? If so then use
    > >
    > > B2: =IF(A2<>"",LEFT(A2,2),"")
    > > C2: =IF(A2<>"",MID(A2,3,6),"")
    > > D2: =IF(A2<>"",RIGHT(A2,1),"")
    > >
    > > and copy down
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "Did" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have some large cells with various data, some (not all) contain a

    unique
    > > > string of charaters which I would like to extract to another cell. The

    > > string
    > > > of characters is two alphanumerical then six numerical then one
    > > > alphanumerical. For those in the UK, like National Insurance numbers.

    Im
    > > not
    > > > very good at VB, so would prefer a formula in a cell but beggers can't

    be
    > > > chosers. Thanks for any assistance.

    > >
    > >
    > >




  21. #21
    Biff
    Guest

    Re: select a string of characters

    Here's one possibility that's relatively easy but whether it will work for
    your situation.....

    If you have a list of the known member IDs....

    Put that list in a range of cells and give that range a name like IDs.

    Then use this array formula:

    =INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0))

    Tested and works on cells with 300 characters.

    To return blanks when no ID number is found:

    =IF(ISNA(MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)),"",INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)))

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    >I think that is going to be very difficult to do!
    >
    > Probably going to need VBA. I can't help with that,sorry!
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    >>I can e-mail a few of the fields if you want. Each cell is usally around
    >> 600-800 characters long of messages relating to a membership, so a lot
    >> of, he
    >> said, she said and some where you get things like "casemem no is
    >> NR623454C"
    >> or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    >> and
    >> open" its the NR623454C HG674398P BH346799R that I would like to copy
    >> to a
    >> new column, leaving it blank if the membership no doesn't appear.
    >>
    >> "Biff" wrote:
    >>
    >>> Hi!
    >>>
    >>> For the best possible solution you'll need to provide several examples.
    >>>
    >>> Biff
    >>>
    >>> "Did" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> >I have some large cells with various data, some (not all) contain a
    >>> >unique
    >>> > string of charaters which I would like to extract to another cell. The
    >>> > string
    >>> > of characters is two alphanumerical then six numerical then one
    >>> > alphanumerical. For those in the UK, like National Insurance numbers.
    >>> > Im
    >>> > not
    >>> > very good at VB, so would prefer a formula in a cell but beggers can't
    >>> > be
    >>> > chosers. Thanks for any assistance.
    >>>
    >>>
    >>>

    >
    >




  22. #22
    Biff
    Guest

    Re: select a string of characters

    I think that is going to be very difficult to do!

    Probably going to need VBA. I can't help with that,sorry!

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I can e-mail a few of the fields if you want. Each cell is usally around
    > 600-800 characters long of messages relating to a membership, so a lot of,
    > he
    > said, she said and some where you get things like "casemem no is
    > NR623454C"
    > or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    > and
    > open" its the NR623454C HG674398P BH346799R that I would like to copy
    > to a
    > new column, leaving it blank if the membership no doesn't appear.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> For the best possible solution you'll need to provide several examples.
    >>
    >> Biff
    >>
    >> "Did" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I have some large cells with various data, some (not all) contain a
    >> >unique
    >> > string of charaters which I would like to extract to another cell. The
    >> > string
    >> > of characters is two alphanumerical then six numerical then one
    >> > alphanumerical. For those in the UK, like National Insurance numbers.
    >> > Im
    >> > not
    >> > very good at VB, so would prefer a formula in a cell but beggers can't
    >> > be
    >> > chosers. Thanks for any assistance.

    >>
    >>
    >>




  23. #23
    Did
    Guest

    Re: select a string of characters

    Think there was a cross over in the posting, this only works if the sting of
    characters I want is the first thing in the cell (which sometimes it is), I
    would love to be able for it to find and extract no matter where it is in the
    field, as long as it is 2 letters, 6 numbers and a single letter.

    "Bob Phillips" wrote:

    > Do you want to break it down into component part? If so then use
    >
    > B2: =IF(A2<>"",LEFT(A2,2),"")
    > C2: =IF(A2<>"",MID(A2,3,6),"")
    > D2: =IF(A2<>"",RIGHT(A2,1),"")
    >
    > and copy down
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The

    > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im

    > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  24. #24
    Bob Phillips
    Guest

    Re: select a string of characters

    That is going to be difficult, even with VBA.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > Think there was a cross over in the posting, this only works if the sting

    of
    > characters I want is the first thing in the cell (which sometimes it is),

    I
    > would love to be able for it to find and extract no matter where it is in

    the
    > field, as long as it is 2 letters, 6 numbers and a single letter.
    >
    > "Bob Phillips" wrote:
    >
    > > Do you want to break it down into component part? If so then use
    > >
    > > B2: =IF(A2<>"",LEFT(A2,2),"")
    > > C2: =IF(A2<>"",MID(A2,3,6),"")
    > > D2: =IF(A2<>"",RIGHT(A2,1),"")
    > >
    > > and copy down
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "Did" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have some large cells with various data, some (not all) contain a

    unique
    > > > string of charaters which I would like to extract to another cell. The

    > > string
    > > > of characters is two alphanumerical then six numerical then one
    > > > alphanumerical. For those in the UK, like National Insurance numbers.

    Im
    > > not
    > > > very good at VB, so would prefer a formula in a cell but beggers can't

    be
    > > > chosers. Thanks for any assistance.

    > >
    > >
    > >




  25. #25
    Did
    Guest

    Re: select a string of characters

    I can e-mail a few of the fields if you want. Each cell is usally around
    600-800 characters long of messages relating to a membership, so a lot of, he
    said, she said and some where you get things like "casemem no is NR623454C"
    or "t/p advised HG674398P won't attend" and "BH346799R to remain linked and
    open" its the NR623454C HG674398P BH346799R that I would like to copy to a
    new column, leaving it blank if the membership no doesn't appear.

    "Biff" wrote:

    > Hi!
    >
    > For the best possible solution you'll need to provide several examples.
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The
    > > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  26. #26
    Biff
    Guest

    Re: select a string of characters

    Hi!

    For the best possible solution you'll need to provide several examples.

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The
    > string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  27. #27
    Bob Phillips
    Guest

    Re: select a string of characters

    Do you want to break it down into component part? If so then use

    B2: =IF(A2<>"",LEFT(A2,2),"")
    C2: =IF(A2<>"",MID(A2,3,6),"")
    D2: =IF(A2<>"",RIGHT(A2,1),"")

    and copy down

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The

    string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im

    not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  28. #28
    Biff
    Guest

    Re: select a string of characters

    Here's one possibility that's relatively easy but whether it will work for
    your situation.....

    If you have a list of the known member IDs....

    Put that list in a range of cells and give that range a name like IDs.

    Then use this array formula:

    =INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0))

    Tested and works on cells with 300 characters.

    To return blanks when no ID number is found:

    =IF(ISNA(MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)),"",INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)))

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    >I think that is going to be very difficult to do!
    >
    > Probably going to need VBA. I can't help with that,sorry!
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    >>I can e-mail a few of the fields if you want. Each cell is usally around
    >> 600-800 characters long of messages relating to a membership, so a lot
    >> of, he
    >> said, she said and some where you get things like "casemem no is
    >> NR623454C"
    >> or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    >> and
    >> open" its the NR623454C HG674398P BH346799R that I would like to copy
    >> to a
    >> new column, leaving it blank if the membership no doesn't appear.
    >>
    >> "Biff" wrote:
    >>
    >>> Hi!
    >>>
    >>> For the best possible solution you'll need to provide several examples.
    >>>
    >>> Biff
    >>>
    >>> "Did" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> >I have some large cells with various data, some (not all) contain a
    >>> >unique
    >>> > string of charaters which I would like to extract to another cell. The
    >>> > string
    >>> > of characters is two alphanumerical then six numerical then one
    >>> > alphanumerical. For those in the UK, like National Insurance numbers.
    >>> > Im
    >>> > not
    >>> > very good at VB, so would prefer a formula in a cell but beggers can't
    >>> > be
    >>> > chosers. Thanks for any assistance.
    >>>
    >>>
    >>>

    >
    >




  29. #29
    Biff
    Guest

    Re: select a string of characters

    I think that is going to be very difficult to do!

    Probably going to need VBA. I can't help with that,sorry!

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I can e-mail a few of the fields if you want. Each cell is usally around
    > 600-800 characters long of messages relating to a membership, so a lot of,
    > he
    > said, she said and some where you get things like "casemem no is
    > NR623454C"
    > or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    > and
    > open" its the NR623454C HG674398P BH346799R that I would like to copy
    > to a
    > new column, leaving it blank if the membership no doesn't appear.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> For the best possible solution you'll need to provide several examples.
    >>
    >> Biff
    >>
    >> "Did" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I have some large cells with various data, some (not all) contain a
    >> >unique
    >> > string of charaters which I would like to extract to another cell. The
    >> > string
    >> > of characters is two alphanumerical then six numerical then one
    >> > alphanumerical. For those in the UK, like National Insurance numbers.
    >> > Im
    >> > not
    >> > very good at VB, so would prefer a formula in a cell but beggers can't
    >> > be
    >> > chosers. Thanks for any assistance.

    >>
    >>
    >>




  30. #30
    Did
    Guest

    Re: select a string of characters

    Think there was a cross over in the posting, this only works if the sting of
    characters I want is the first thing in the cell (which sometimes it is), I
    would love to be able for it to find and extract no matter where it is in the
    field, as long as it is 2 letters, 6 numbers and a single letter.

    "Bob Phillips" wrote:

    > Do you want to break it down into component part? If so then use
    >
    > B2: =IF(A2<>"",LEFT(A2,2),"")
    > C2: =IF(A2<>"",MID(A2,3,6),"")
    > D2: =IF(A2<>"",RIGHT(A2,1),"")
    >
    > and copy down
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The

    > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im

    > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  31. #31
    Bob Phillips
    Guest

    Re: select a string of characters

    That is going to be difficult, even with VBA.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > Think there was a cross over in the posting, this only works if the sting

    of
    > characters I want is the first thing in the cell (which sometimes it is),

    I
    > would love to be able for it to find and extract no matter where it is in

    the
    > field, as long as it is 2 letters, 6 numbers and a single letter.
    >
    > "Bob Phillips" wrote:
    >
    > > Do you want to break it down into component part? If so then use
    > >
    > > B2: =IF(A2<>"",LEFT(A2,2),"")
    > > C2: =IF(A2<>"",MID(A2,3,6),"")
    > > D2: =IF(A2<>"",RIGHT(A2,1),"")
    > >
    > > and copy down
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "Did" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have some large cells with various data, some (not all) contain a

    unique
    > > > string of charaters which I would like to extract to another cell. The

    > > string
    > > > of characters is two alphanumerical then six numerical then one
    > > > alphanumerical. For those in the UK, like National Insurance numbers.

    Im
    > > not
    > > > very good at VB, so would prefer a formula in a cell but beggers can't

    be
    > > > chosers. Thanks for any assistance.

    > >
    > >
    > >




  32. #32
    Biff
    Guest

    Re: select a string of characters

    Hi!

    For the best possible solution you'll need to provide several examples.

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The
    > string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  33. #33
    Did
    Guest

    Re: select a string of characters

    I can e-mail a few of the fields if you want. Each cell is usally around
    600-800 characters long of messages relating to a membership, so a lot of, he
    said, she said and some where you get things like "casemem no is NR623454C"
    or "t/p advised HG674398P won't attend" and "BH346799R to remain linked and
    open" its the NR623454C HG674398P BH346799R that I would like to copy to a
    new column, leaving it blank if the membership no doesn't appear.

    "Biff" wrote:

    > Hi!
    >
    > For the best possible solution you'll need to provide several examples.
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The
    > > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  34. #34
    Biff
    Guest

    Re: select a string of characters

    Here's one possibility that's relatively easy but whether it will work for
    your situation.....

    If you have a list of the known member IDs....

    Put that list in a range of cells and give that range a name like IDs.

    Then use this array formula:

    =INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0))

    Tested and works on cells with 300 characters.

    To return blanks when no ID number is found:

    =IF(ISNA(MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)),"",INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)))

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    >I think that is going to be very difficult to do!
    >
    > Probably going to need VBA. I can't help with that,sorry!
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    >>I can e-mail a few of the fields if you want. Each cell is usally around
    >> 600-800 characters long of messages relating to a membership, so a lot
    >> of, he
    >> said, she said and some where you get things like "casemem no is
    >> NR623454C"
    >> or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    >> and
    >> open" its the NR623454C HG674398P BH346799R that I would like to copy
    >> to a
    >> new column, leaving it blank if the membership no doesn't appear.
    >>
    >> "Biff" wrote:
    >>
    >>> Hi!
    >>>
    >>> For the best possible solution you'll need to provide several examples.
    >>>
    >>> Biff
    >>>
    >>> "Did" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> >I have some large cells with various data, some (not all) contain a
    >>> >unique
    >>> > string of charaters which I would like to extract to another cell. The
    >>> > string
    >>> > of characters is two alphanumerical then six numerical then one
    >>> > alphanumerical. For those in the UK, like National Insurance numbers.
    >>> > Im
    >>> > not
    >>> > very good at VB, so would prefer a formula in a cell but beggers can't
    >>> > be
    >>> > chosers. Thanks for any assistance.
    >>>
    >>>
    >>>

    >
    >




  35. #35
    Bob Phillips
    Guest

    Re: select a string of characters

    Do you want to break it down into component part? If so then use

    B2: =IF(A2<>"",LEFT(A2,2),"")
    C2: =IF(A2<>"",MID(A2,3,6),"")
    D2: =IF(A2<>"",RIGHT(A2,1),"")

    and copy down

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The

    string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im

    not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  36. #36
    Did
    Guest

    select a string of characters

    I have some large cells with various data, some (not all) contain a unique
    string of charaters which I would like to extract to another cell. The string
    of characters is two alphanumerical then six numerical then one
    alphanumerical. For those in the UK, like National Insurance numbers. Im not
    very good at VB, so would prefer a formula in a cell but beggers can't be
    chosers. Thanks for any assistance.

  37. #37
    Biff
    Guest

    Re: select a string of characters

    Hi!

    For the best possible solution you'll need to provide several examples.

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The
    > string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  38. #38
    Bob Phillips
    Guest

    Re: select a string of characters

    Do you want to break it down into component part? If so then use

    B2: =IF(A2<>"",LEFT(A2,2),"")
    C2: =IF(A2<>"",MID(A2,3,6),"")
    D2: =IF(A2<>"",RIGHT(A2,1),"")

    and copy down

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > I have some large cells with various data, some (not all) contain a unique
    > string of charaters which I would like to extract to another cell. The

    string
    > of characters is two alphanumerical then six numerical then one
    > alphanumerical. For those in the UK, like National Insurance numbers. Im

    not
    > very good at VB, so would prefer a formula in a cell but beggers can't be
    > chosers. Thanks for any assistance.




  39. #39
    Did
    Guest

    Re: select a string of characters

    I can e-mail a few of the fields if you want. Each cell is usally around
    600-800 characters long of messages relating to a membership, so a lot of, he
    said, she said and some where you get things like "casemem no is NR623454C"
    or "t/p advised HG674398P won't attend" and "BH346799R to remain linked and
    open" its the NR623454C HG674398P BH346799R that I would like to copy to a
    new column, leaving it blank if the membership no doesn't appear.

    "Biff" wrote:

    > Hi!
    >
    > For the best possible solution you'll need to provide several examples.
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The
    > > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im
    > > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


  40. #40
    Biff
    Guest

    Re: select a string of characters

    Here's one possibility that's relatively easy but whether it will work for
    your situation.....

    If you have a list of the known member IDs....

    Put that list in a range of cells and give that range a name like IDs.

    Then use this array formula:

    =INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0))

    Tested and works on cells with 300 characters.

    To return blanks when no ID number is found:

    =IF(ISNA(MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)),"",INDEX(IDs,MATCH(TRUE,ISNUMBER(SEARCH(IDs,A1)),0)))

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    >I think that is going to be very difficult to do!
    >
    > Probably going to need VBA. I can't help with that,sorry!
    >
    > Biff
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    >>I can e-mail a few of the fields if you want. Each cell is usally around
    >> 600-800 characters long of messages relating to a membership, so a lot
    >> of, he
    >> said, she said and some where you get things like "casemem no is
    >> NR623454C"
    >> or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    >> and
    >> open" its the NR623454C HG674398P BH346799R that I would like to copy
    >> to a
    >> new column, leaving it blank if the membership no doesn't appear.
    >>
    >> "Biff" wrote:
    >>
    >>> Hi!
    >>>
    >>> For the best possible solution you'll need to provide several examples.
    >>>
    >>> Biff
    >>>
    >>> "Did" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> >I have some large cells with various data, some (not all) contain a
    >>> >unique
    >>> > string of charaters which I would like to extract to another cell. The
    >>> > string
    >>> > of characters is two alphanumerical then six numerical then one
    >>> > alphanumerical. For those in the UK, like National Insurance numbers.
    >>> > Im
    >>> > not
    >>> > very good at VB, so would prefer a formula in a cell but beggers can't
    >>> > be
    >>> > chosers. Thanks for any assistance.
    >>>
    >>>
    >>>

    >
    >




  41. #41
    Biff
    Guest

    Re: select a string of characters

    I think that is going to be very difficult to do!

    Probably going to need VBA. I can't help with that,sorry!

    Biff

    "Did" <[email protected]> wrote in message
    news:[email protected]...
    >I can e-mail a few of the fields if you want. Each cell is usally around
    > 600-800 characters long of messages relating to a membership, so a lot of,
    > he
    > said, she said and some where you get things like "casemem no is
    > NR623454C"
    > or "t/p advised HG674398P won't attend" and "BH346799R to remain linked
    > and
    > open" its the NR623454C HG674398P BH346799R that I would like to copy
    > to a
    > new column, leaving it blank if the membership no doesn't appear.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> For the best possible solution you'll need to provide several examples.
    >>
    >> Biff
    >>
    >> "Did" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I have some large cells with various data, some (not all) contain a
    >> >unique
    >> > string of charaters which I would like to extract to another cell. The
    >> > string
    >> > of characters is two alphanumerical then six numerical then one
    >> > alphanumerical. For those in the UK, like National Insurance numbers.
    >> > Im
    >> > not
    >> > very good at VB, so would prefer a formula in a cell but beggers can't
    >> > be
    >> > chosers. Thanks for any assistance.

    >>
    >>
    >>




  42. #42
    Bob Phillips
    Guest

    Re: select a string of characters

    That is going to be difficult, even with VBA.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Did" <[email protected]> wrote in message
    news:[email protected]...
    > Think there was a cross over in the posting, this only works if the sting

    of
    > characters I want is the first thing in the cell (which sometimes it is),

    I
    > would love to be able for it to find and extract no matter where it is in

    the
    > field, as long as it is 2 letters, 6 numbers and a single letter.
    >
    > "Bob Phillips" wrote:
    >
    > > Do you want to break it down into component part? If so then use
    > >
    > > B2: =IF(A2<>"",LEFT(A2,2),"")
    > > C2: =IF(A2<>"",MID(A2,3,6),"")
    > > D2: =IF(A2<>"",RIGHT(A2,1),"")
    > >
    > > and copy down
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "Did" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have some large cells with various data, some (not all) contain a

    unique
    > > > string of charaters which I would like to extract to another cell. The

    > > string
    > > > of characters is two alphanumerical then six numerical then one
    > > > alphanumerical. For those in the UK, like National Insurance numbers.

    Im
    > > not
    > > > very good at VB, so would prefer a formula in a cell but beggers can't

    be
    > > > chosers. Thanks for any assistance.

    > >
    > >
    > >




  43. #43
    Did
    Guest

    Re: select a string of characters

    Think there was a cross over in the posting, this only works if the sting of
    characters I want is the first thing in the cell (which sometimes it is), I
    would love to be able for it to find and extract no matter where it is in the
    field, as long as it is 2 letters, 6 numbers and a single letter.

    "Bob Phillips" wrote:

    > Do you want to break it down into component part? If so then use
    >
    > B2: =IF(A2<>"",LEFT(A2,2),"")
    > C2: =IF(A2<>"",MID(A2,3,6),"")
    > D2: =IF(A2<>"",RIGHT(A2,1),"")
    >
    > and copy down
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Did" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have some large cells with various data, some (not all) contain a unique
    > > string of charaters which I would like to extract to another cell. The

    > string
    > > of characters is two alphanumerical then six numerical then one
    > > alphanumerical. For those in the UK, like National Insurance numbers. Im

    > not
    > > very good at VB, so would prefer a formula in a cell but beggers can't be
    > > chosers. Thanks for any assistance.

    >
    >
    >


+ 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