+ Reply to Thread
Results 1 to 7 of 7

Help with a consolidating data with a dynamic range

  1. #1
    Forum Contributor
    Join Date
    12-06-2020
    Location
    Adelaide
    MS-Off Ver
    MS Office 365
    Posts
    108

    Help with a consolidating data with a dynamic range

    Hello Everyone,

    I appreciate any help that can be provided as I am new to VBA. I want to consolidate data in a table where Column A is the reference number. The other columns are related to payment and commission charges. I am wanting to automate the manual process of me sorting the statement into a format that is easier to receipt from as some statements can have over 2000 transactions. A reference number could appear several times in the statement as it determines how often payment is being received from an individual. I have worked out most of the coding needed to automated this task except for consolidating the data. I have used Record Macro, but won't be able to use this as the range is fixed. The range of data can change depending on how many transactions are in the statement.

    Below is a screenshot. On the left side is the unconsolidated data and on the right side is the data that has been consolidated.

    Screenshot 2022-01-26 124231.png

    I have also attached a spreadsheet with fake information in it, as it shows what I have done and what code I am working within trying to accomplish consolidating the data. The code is in module 3.

    Thanks for any help.
    Attached Files Attached Files
    Last edited by Oberon70; 01-27-2022 at 08:17 PM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Help with a consolidating data with a dynamic range

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-06-2020
    Location
    Adelaide
    MS-Off Ver
    MS Office 365
    Posts
    108

    Re: Help with a consolidating data with a dynamic range

    Thank you so much, that works perfectly

  4. #4
    Forum Contributor
    Join Date
    12-06-2020
    Location
    Adelaide
    MS-Off Ver
    MS Office 365
    Posts
    108

    Re: Help with a consolidating data with a dynamic range

    Hi, I was hoping someone could provide me a breakdown on how the above Macro works? It works great, but I would like to be able to change it for another agent, whose Data file has the information on different columns and I would like to add additional columns to be consolidated.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Help with a consolidating data with a dynamic range

    I don't know if you can add another column(s) for yourself, but this is to give you a better understandings, I hope...
    Please Login or Register  to view this content.
    Do a step debug to understand better...

  6. #6
    Forum Contributor
    Join Date
    12-06-2020
    Location
    Adelaide
    MS-Off Ver
    MS Office 365
    Posts
    108

    Re: Help with a consolidating data with a dynamic range

    Does the 1,6,7 and 9 represent the column on Sheet"Data"?

    I have attached another spreadsheet, but with sample data that is in a different format.

    There is a "Sample" sheet, which shows the results, but what I was trying to achieve.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Help with a consolidating data with a dynamic range

    Seems simple adding each column...
    Please Login or Register  to view this content.

+ 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. Dynamic Data Validation From Dynamic Range
    By ivanginato23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2021, 07:45 AM
  2. using a for loop to step through a range and output values, and consolidating user data
    By ACE engineer in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-04-2021, 09:09 AM
  3. Consolidating two dynamic ranges end counting ratio between values
    By jaryszek in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-08-2016, 09:17 AM
  4. Consolidating dynamic lists
    By andredl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2015, 10:53 PM
  5. [SOLVED] Mutliple SUM with dynamic SUM range within a Dynamic Data set
    By Michael.Westen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2012, 06:28 AM
  6. Consolidating dynamic lists from multiple worksheets to new workbook
    By kmsosaka in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-07-2010, 02:13 AM
  7. Consolidating data based on dynamic dates
    By wilhelm_iv in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-26-2010, 02:16 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