+ Reply to Thread
Results 1 to 6 of 6

Average a column, exlcude a row in a dynamic pivot table

  1. #1
    Registered User
    Join Date
    04-18-2014
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    4

    Question Average a column, exlcude a row in a dynamic pivot table

    Hi all,

    So I'm an amateur with Excel but loving using pivot tables for work.

    What I am trying to do is this: Average a large set of % numbers in one column, and for the formula to ignore one row in particular called "grand total"


    using =AVERAGE(b:b) works to average the column but it also includes the grand total which obviously throws the calculation off.

    Because the data is in a PivotTable with constantly changing data, the "Grand Total" row will be in a different row number every day, so I want the formula to ignore the grand total line.

    Thanks! really appreciate the help.

  2. #2
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Cameron, Mo
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Average a column, exlcude a row in a dynamic pivot table

    Can you do this =(SUM(B:B)/2)/(COUNT(B:B)-1)

  3. #3
    Registered User
    Join Date
    04-18-2014
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Average a column, exlcude a row in a dynamic pivot table

    Quote Originally Posted by Motu040602 View Post
    Can you do this =(SUM(B:B)/2)/(COUNT(B:B)-1)
    Thank you for the reply. Unfortunately that didn't work. Maybe because the column in question is a %?


    For instance, on other columns with the same issue I was able to use a large number to exclude the grand total. Example: =AVERAGEIF(B:B, "<999999")

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Average a column, exlcude a row in a dynamic pivot table

    Hello, try AVERAGEIF like

    =AVERAGEIF(A:A,"<>Grand Total",B:B)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Registered User
    Join Date
    04-18-2014
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Average a column, exlcude a row in a dynamic pivot table

    Thanks Haseeb! Took a little tweaking but it worked :D

  6. #6
    Registered User
    Join Date
    04-18-2014
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Average a column, exlcude a row in a dynamic pivot table

    Solved it better just now using the GETPIVOTDATA.

    Thanks for the replies! Looking forward to using this forum more often :D

+ 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. I want to add an average column to a pivot table
    By RobMcG in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-12-2013, 07:02 AM
  2. Dynamic pivot table column addition
    By jmusbach in forum Excel General
    Replies: 0
    Last Post: 06-11-2012, 09:56 PM
  3. [SOLVED] Can I set column headings on every page and exlcude some pages?
    By Julia in forum Excel General
    Replies: 1
    Last Post: 09-28-2005, 01:05 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