+ Reply to Thread
Results 1 to 3 of 3

Put different rows of text into a single cell

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    6

    Put different rows of text into a single cell

    I am looking to create a macro that can copy text from several different rows, then paste it as a continuous string of data in a single cell using commas to separate it. For example:

    How the data looks.
    Row 1: A
    Row 2: B
    Row 3: C
    Row 4: D

    How I want the macro to copy and paste in a single cell

    A, B, C, D


    Thanks in advance for all the help!

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Put different rows of text into a single cell

    maybe something like this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Put different rows of text into a single cell

    This works perfect. Thanks!

  4. #4
    Registered User
    Join Date
    12-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Put different rows of text into a single cell

    Will this work if there is all ready text in the cell from a prior paste? Column A & B is what I have and C is what I want. Here is an example:

    A B C
    Apples 100 Apples: 100, 200, 300
    200
    300

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merging Text Rows into single Row - separated by row of quaracters or blank
    By designooze in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2013, 04:22 PM
  2. Macro to cut the 3 rows text in to a single row
    By rajkumarmp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2013, 05:16 PM
  3. Replies: 1
    Last Post: 02-17-2012, 03:33 AM
  4. Macro to split a single cell data into rows and copying other cells as it is in rows
    By Pankaj Sonawane in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-25-2010, 07:09 PM
  5. [SOLVED] I want to chage a whole rows text color based on single cell valu.
    By thediamondfam in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-14-2005, 11:51 AM

Tags for this Thread

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