+ Reply to Thread
Results 1 to 7 of 7

Concatenate Between Entries

  1. #1
    Forum Contributor
    Join Date
    07-26-2006
    Posts
    141

    Concatenate Between Entries

    I have the following list. I need a way to concatenate the dates between the new entry(s). The number of dates can vary between new entries.

    New Entry
    9/2005
    10/2005
    11/2005
    New Entry
    9/2005
    10/2005
    11/2005
    New Entry
    9/2005
    10/2005
    11/2005
    New Entry
    6/2006
    7/2006
    New Entry
    6/2006
    7/2006
    New Entry
    9/2006
    10/2006
    New Entry
    12/2006
    1/2007
    New Entry
    3/2007
    4/2007
    New Entry
    3/2007
    4/2007
    5/2007
    New Entry
    4/2007
    5/2007
    6/2007
    New Entry
    4/2007
    5/2007
    6/2007
    7/2007
    New Entry
    5/2007
    6/2007
    7/2007
    8/2007
    New Entry
    5/2007
    6/2007
    8/2007
    9/2007
    New Entry
    5/2007
    6/2007
    8/2007
    9/2007
    New Entry
    6/2007
    8/2007
    9/2007
    New Entry
    6/2007
    8/2007
    9/2007
    12/2007
    New Entry
    6/2007
    8/2007
    9/2007
    12/2007
    01/2008

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    This macro will create a comma separated concatentated list in column C.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Contributor
    Join Date
    07-26-2006
    Posts
    141

    Concatenate New Entries

    I copied and pasted the macro but it keeps hanging up on the line below.

    Cells(Counter, 3) = Cells(Counter, 3) & Cells(L, 1) & ","

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Should be N not L as in the original reply.

    Does this help?

  5. #5
    Forum Contributor
    Join Date
    07-26-2006
    Posts
    141

    Concatenate New Entries

    I have attached my file. I would like a formula or a macro which can concatenate the mo/year between "New Entry" cells and enter the values in column E beside the "New Entry" cells as I manually did in cell E1 and E5.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    Try this code:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-26-2006
    Posts
    141

    Concatenate New Entries

    That works awesome. Thank you so much for your help.

+ 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