+ Reply to Thread
Results 1 to 6 of 6

VBA Merge/Consolidate Dates

  1. #1
    Registered User
    Join Date
    11-05-2024
    Location
    Bath
    MS-Off Ver
    365
    Posts
    3

    VBA Merge/Consolidate Dates

    I have found various posts that merge/consolidate data, but have found the correct for my particular issue.

    I have two ranges that contain to and from dates and a corresponding value. I need to consolidate them into one list with consolidated totals.

    Manual output required in Col J-N

    Inputs A-C, E-G

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,945

    Re: VBA Merge/Consolidate Dates

    Hi and welcome

    A couple of clarification questions for you:
    1) Would there only ever be two tables that need combining?
    2) Are the table lengths (number of rows) variable?

    BSB

  3. #3
    Registered User
    Join Date
    11-05-2024
    Location
    Bath
    MS-Off Ver
    365
    Posts
    3

    Re: VBA Merge/Consolidate Dates

    Hi There would only ever be two tables......and the data would never go beyond 50 lines.

    Thanks

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,003

    Re: VBA Merge/Consolidate Dates

    I don't understand why cell J7 displays 7/28/2024. I don't see that date in columns A:B nor E:F
    I also don't understand why cell K8 displays 7/22/2014 as a (apparent) end date for 4/1/2014. It seems the end date in cell K8 should be 12/31/2014.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    11-05-2024
    Location
    Bath
    MS-Off Ver
    365
    Posts
    3

    Re: VBA Merge/Consolidate Dates

    To Add some context, the two sets of data are employment details relating to how many hours per week the person works. During the corresponding data range In this example two part time jobs.

    I need to merge the date and data together to get one set of data.

  6. #6
    Forum Contributor
    Join Date
    11-01-2024
    Location
    Korea
    MS-Off Ver
    M365 64bit v2411
    Posts
    254

    Re: VBA Merge/Consolidate Dates

    I think your sample could be modified as attached picture.
    Try this formula, this requires GROUPBY function, please check update if #NAME error.
    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by RhiSJ; 11-25-2024 at 10:15 AM.
    You made my day!

+ 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. Get, Merge & Consolidate Data - Help Request!!!
    By techzia in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2012, 05:35 PM
  2. Consolidate / Merge workbooks
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2012, 02:22 PM
  3. Consolidate/Merge Worksheets
    By karlr9 in forum Excel General
    Replies: 0
    Last Post: 07-22-2009, 01:29 PM
  4. Merge / Consolidate Worksheets
    By Hoopsah in forum Excel General
    Replies: 4
    Last Post: 08-02-2007, 07:47 AM
  5. Merge / Consolidate data
    By jhayes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2007, 08:15 PM
  6. combine, merge, consolidate worksheets
    By biglu in forum Excel General
    Replies: 6
    Last Post: 12-05-2006, 05:40 PM

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