Results 1 to 5 of 5

Subtotal macro

Threaded View

  1. #1
    Registered User
    Join Date
    11-25-2021
    Location
    Estonia
    MS-Off Ver
    365
    Posts
    2

    Subtotal macro

    Hi

    I need to program a macro that uses subtotals.
    The problem is that i need the subtotals to sort by multiple columns. I have a macro that reads data and writes the data in the sheet but i cant find a way to make subtotal rows that consider multiple rows. I can only find a way to create subtotal rows based on either row A or row B (in the example picture: either by Animal change or by color change, but i need it to create the rows by all columns). And also the subtotal (Data-Subtotal) app is adding all the subtotals to different rows but i need them to be on the same row.
    So i was wondering if there is a way to do it since i havent been able to find any help by googling?

    I dont have permissions to post the original data but i added an illustration to what am trying to achieve
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sorting by Alpha, Adding Subtotal - then removing subtotal - variable data sets
    By gregg_grug in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-03-2019, 07:41 PM
  2. subtotal macro: to subtotal only a few amounts
    By annabanna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 01:36 PM
  3. Replies: 1
    Last Post: 09-18-2013, 04:10 PM
  4. Replies: 8
    Last Post: 07-31-2012, 09:41 AM
  5. Subtotal - Delete zero Subtotal and prior rows that calculate to that zero Subtotal
    By Whatsherface in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 08:37 PM
  6. subtotal macro
    By osaben in forum Excel General
    Replies: 20
    Last Post: 02-25-2011, 09:16 AM
  7. Macro Subtotal Please Help!
    By mgmisola in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2010, 12:15 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