+ Reply to Thread
Results 1 to 4 of 4

Format Cell Data so text appears in neat format?

  1. #1
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Format Cell Data so text appears in neat format?

    I have a spreadsheet of around 600 rows.

    In column R is a list of data, which is seperated by a comma.

    Example:

    Name, Address, Address2, Post Code

    I want to create a macro that runs through each cell in column R and formats the data so it appers like this in each cell:

    Name,
    Address,
    Address2,
    Post Code

    In otherwards, doing exactly what you would do if you were manually pressing Alt and Enter after every comma?

    Is this possible?

    Thanks
    McCrimmon

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Format Cell Data so text appears in neat format?

    Select the column and go to Edit|Replace

    Replace a space (use spacebar)

    with this: Hold the ALT key down and enter 010 with your number pad on the keyboard.

    Click Ok,

    You might have to Format Cells with Alignment: Wrap text.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Format Cell Data so text appears in neat format?

    Shouldn't that be: replace a comma space ", "

    otherwise you'll be replacing a lot of spaces where you don't want them replaced?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Format Cell Data so text appears in neat format?

    Yes thanks. You are correct.

+ 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