+ Reply to Thread
Results 1 to 4 of 4

Subtotal Sum, and Subtotal Average on same row

  1. #1
    Registered User
    Join Date
    11-20-2007
    Location
    Menlo Park, CA
    MS-Off Ver
    Office 2019 Pro Plus
    Posts
    33

    Subtotal Sum, and Subtotal Average on same row

    Using Office 2007.

    With the Subtotal command, I can receive the SUM for certain columns that I need.

    I then use the Subtotal command again to get the AVERAGE percentage for another column. My Problem is, the Average creates another row above the Sum. I would like the average to just go on the same row as the Sum.

    Attached is my spreadsheet, just need the code or tool that will allow me to drop the average into the blank box. (Performance Column) I will be using the Macro I have setup currently on many spreadsheets, so I need to code to work like it did with the sum where every change in campaign, it would sum the columns. I need average to do the same, where every change in campaign will put average in the performance column. Thanks for the help.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Can you post a second page to your sheet that demonstrates exactly what you want the result to look like? If you can manually insert the answer(s), too, it will make it clear to us what the automation and result needed is.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-20-2007
    Location
    Menlo Park, CA
    MS-Off Ver
    Office 2019 Pro Plus
    Posts
    33
    The "Dontwant" file is me finding the averages I need using the subtotal function, but creates an additional un-needed row.

    The "want" file is the averages I need in the position I need, but I placed the averages there manually. Looking to automate the process. Thanks.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-20-2007
    Location
    Menlo Park, CA
    MS-Off Ver
    Office 2019 Pro Plus
    Posts
    33
    Does anyone need more info?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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