+ Reply to Thread
Results 1 to 5 of 5

Replacing commas with carriage return

  1. #1
    Hardip
    Guest

    Replacing commas with carriage return

    Hi All,

    I have a list of names like so:

    John Thomson, Paul Cooper, Ian Smith, Mark Devlin... and so on

    The names are in one continuous string i.e. they start from one cell (A1).

    I'd like to replace the commas with a carriage return to place each name
    into its own cell. Is there function or calculation I can use to achieve
    this?

    Any advise would be appreciated.

    TIA - H

  2. #2
    Bob Phillips
    Guest

    Re: Replacing commas with carriage return

    =SUBSTITUTE(A21,",",CHAR(10))

    but you will still need to manually add wrap text to the cell and adjust its
    height

    --

    HTH

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


    "Hardip" <[email protected]> wrote in message
    news:[email protected]...
    > Hi All,
    >
    > I have a list of names like so:
    >
    > John Thomson, Paul Cooper, Ian Smith, Mark Devlin... and so on
    >
    > The names are in one continuous string i.e. they start from one cell (A1).
    >
    > I'd like to replace the commas with a carriage return to place each name
    > into its own cell. Is there function or calculation I can use to achieve
    > this?
    >
    > Any advise would be appreciated.
    >
    > TIA - H




  3. #3
    Stefi
    Guest

    RE: Replacing commas with carriage return

    Data->Text to columns/separated by commas
    This will place each name into separate columns and it removes commas.
    Regards,
    Stefi


    „Hardip” ezt *rta:

    > Hi All,
    >
    > I have a list of names like so:
    >
    > John Thomson, Paul Cooper, Ian Smith, Mark Devlin... and so on
    >
    > The names are in one continuous string i.e. they start from one cell (A1).
    >
    > I'd like to replace the commas with a carriage return to place each name
    > into its own cell. Is there function or calculation I can use to achieve
    > this?
    >
    > Any advise would be appreciated.
    >
    > TIA - H


  4. #4
    Bob Phillips
    Guest

    Re: Replacing commas with carriage return

    Oops, I mis-read, this just newlines them.

    --

    HTH

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


    "Bob Phillips" <[email protected]> wrote in message
    news:%[email protected]...
    > =SUBSTITUTE(A21,",",CHAR(10))
    >
    > but you will still need to manually add wrap text to the cell and adjust

    its
    > height
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Hardip" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi All,
    > >
    > > I have a list of names like so:
    > >
    > > John Thomson, Paul Cooper, Ian Smith, Mark Devlin... and so on
    > >
    > > The names are in one continuous string i.e. they start from one cell

    (A1).
    > >
    > > I'd like to replace the commas with a carriage return to place each name
    > > into its own cell. Is there function or calculation I can use to

    achieve
    > > this?
    > >
    > > Any advise would be appreciated.
    > >
    > > TIA - H

    >
    >




  5. #5
    Hardip
    Guest

    RE: Replacing commas with carriage return

    Hi All,

    Thanks for the response. I used the data > text to columns feature,
    followed by copy / paste special transpose function.

    Thanks again,
    H

    "Stefi" wrote:

    > Data->Text to columns/separated by commas
    > This will place each name into separate columns and it removes commas.
    > Regards,
    > Stefi
    >
    >
    > „Hardip” ezt *rta:
    >
    > > Hi All,
    > >
    > > I have a list of names like so:
    > >
    > > John Thomson, Paul Cooper, Ian Smith, Mark Devlin... and so on
    > >
    > > The names are in one continuous string i.e. they start from one cell (A1).
    > >
    > > I'd like to replace the commas with a carriage return to place each name
    > > into its own cell. Is there function or calculation I can use to achieve
    > > this?
    > >
    > > Any advise would be appreciated.
    > >
    > > TIA - H


+ 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