+ Reply to Thread
Results 1 to 4 of 4

Help in combining rows where dates are consecutive or overlapping

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    104

    Help in combining rows where dates are consecutive or overlapping

    Hello,
    I am looking for some help in combining rows where dates are consecutive or overlapping.

    I was able to find a macro to help me with this and I modified it to my needs and how my data was presented. However the macro I found is only looking at 1 column to find unique values and then combine rows for that unique value if the dates are consecutive or overlapping.

    I would need some help on how to modify the macro to look at 3 columns. If the column B (Client #), column D (Item #) and column G (Location #) are identical then combine those rows if the dates are consecutive or overlapping. Right now the version of the macro is only looking at 1 column, the column D (Item#).

    I have attached a workbook with an example as well as the macro that you can run to see the results. I have also put what is my desired results of the improved macro.

    I am also including below the VBA code of the macro. Thank you for your time!

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Help in combining rows where dates are consecutive or overlapping

    Hi @ Chrispelletier

    Try this code
    It's just in reversed order
    Please Login or Register  to view this content.
    Barriers are there for those who don't want to dream

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    104

    Re: Help in combining rows where dates are consecutive or overlapping

    Hello vichopalacios,

    The macro works perfectly. Thanks a lot for helping out, greatly appreciated!

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Help in combining rows where dates are consecutive or overlapping

    Hi Chrispelletier

    Great to know that

+ 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. combining text from rows based upon current month dates
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-26-2014, 03:42 PM
  2. [SOLVED] Overlapping Dates, Gaps in Dates, Double Counting
    By arunkushvaha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2013, 11:15 PM
  3. formula for combining multiple dates, from columns to rows
    By juliomanco in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-29-2012, 06:21 PM
  4. Help with obtaining MIN from consecutive, non-overlapping ranges
    By l.alex.g in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2012, 03:58 PM
  5. Overlapping Dates, Gaps in Dates, Double Counting
    By sglxl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2012, 02:46 AM
  6. Replies: 3
    Last Post: 02-14-2012, 01:38 AM
  7. Replies: 3
    Last Post: 07-14-2010, 03:36 AM

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