+ Reply to Thread
Results 1 to 4 of 4

Automate procedures with VBA or Macro- for dynamic data

  1. #1
    Registered User
    Join Date
    09-20-2018
    Location
    New Zealand
    MS-Off Ver
    2016
    Posts
    4

    Automate procedures with VBA or Macro- for dynamic data

    Hi,
    We're run a community gallery and have an app that handles the sales data. We download the transaction data at the end of each month (sample spreadsheet attached)in excel format.
    The spreadsheet layout has columns for receipt no. name of item sold, and artists name. Each row is data on an item that was sold.

    We'd like to create an automated system that can order all the rows together based on artist, and add up the total sales for each artist, and then send the monthly sales summery to each
    arstist. (we have the mail merge/email part sorted via google sheets/docs).

    The data will change each month, so the name of artists will likely change as well as the number of sales ie number of rows of data.

    How do you create a system that can handle the the differring data for each month?

    Have tried Pivot table, but that causes issues with the data merge/email.

    Many thanks
    Vin
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: Automate procedures with VBA or Macro- for dynamic data

    Since you did not supply a mocked up solution of what you want your output to be, I have guessed. If this is not what you are looking for, then please mock up a solution that does show what you want. Here is the Mcode for a power query solution.

    Please Login or Register  to view this content.
    Excel 365 (Windows) 64 bit
    A
    B
    1
    Category Total Net Sales
    2
    Jo Steeple
    165
    3
    Les Southmoor
    464
    4
    Bob Quarrie
    159
    5
    Cyril Spector
    20
    Sheet: Table1

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-20-2018
    Location
    New Zealand
    MS-Off Ver
    2016
    Posts
    4

    Re: Automate procedures with VBA or Macro- for dynamic data

    Thanks for your help Alan.

    Works great!

    cheers
    vin

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: Automate procedures with VBA or Macro- for dynamic data

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] Trying to automate subtotals within a column of dynamic data
    By gezzer1520 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 10-03-2021, 09:04 AM
  2. Automate Data Entry with array or Macro
    By tsdpurdue in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-01-2017, 04:05 PM
  3. Functions, procedures and sub procedures - when to choose what?
    By tiwas in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-01-2015, 09:00 AM
  4. Automate Dynamic Data push across Workbooks
    By Sunk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2015, 02:31 PM
  5. Macro to automate data Sort functionality
    By Volders in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2009, 04:47 AM
  6. Macro procedures
    By Danita in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2005, 04:06 PM

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