+ Reply to Thread
Results 1 to 6 of 6

How can I have a count value in the body of a pivotable but a sum in the total?

  1. #1
    Registered User
    Join Date
    06-16-2015
    Location
    mexico
    MS-Off Ver
    2007
    Posts
    6

    Post How can I have a count value in the body of a pivotable but a sum in the total?

    I need some help:

    How can I have a count value in the body of a pivotable but a sum in the total?

    When I change the summarized value of the total from a count to a sum, the whole column changes to a sum.

    Attached is an example of what I get and what I need.

    Any help will be greatly appreciated.

    Luis
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can I have a count value in the body of a pivotable but a sum in the total?

    you protected your worksheet, so I can't show the result.

    F2=IF(E2=MAXIFS($E$2:$E$500,$A$2:$A$500,A2),E2,"")

    After that a pivot table on column F.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-16-2015
    Location
    mexico
    MS-Off Ver
    2007
    Posts
    6

    Re: How can I have a count value in the body of a pivotable but a sum in the total?

    Hi oeldere,
    I appreciate the formula but I wasn't able to replicate the solution. I didn't know the file was protected. Please use the new file I upload to see your solution in action.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can I have a count value in the body of a pivotable but a sum in the total?

    You are correct, that does not work.

    Try this working one instead.

    F2 =IF(AND(E2=MAXIFS($E$2:$E$500,$A$2:$A$500,A2),COUNTIF($A$2:$A2,$A2)=1),E2,"")

    See the attached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-16-2015
    Location
    mexico
    MS-Off Ver
    2007
    Posts
    6

    Re: How can I have a count value in the body of a pivotable but a sum in the total?

    Dear oeldre, what a smooth and straightforward solution.

    I appreciate your help. This was precisely what I was looking for.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can I have a count value in the body of a pivotable but a sum in the total?

    Glad I could help.

    Thanks for marking the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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] Need help to graph unique values total vs count total
    By mrteater in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-04-2022, 09:31 AM
  2. Replies: 4
    Last Post: 04-26-2021, 11:13 AM
  3. [SOLVED] To count total numbers recorded by group total
    By michael35 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-03-2018, 08:12 AM
  4. Replies: 8
    Last Post: 03-11-2015, 07:53 PM
  5. does any body know sequential invocie numbering to a refernce count?
    By Anandcram in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 08-06-2012, 03:49 AM
  6. Calculations for total body weight lost/gained.
    By saitek in forum Excel - New Users/Basics
    Replies: 19
    Last Post: 01-20-2009, 08:05 PM
  7. [SOLVED] Any body know how to count the cilumns in a range
    By Tom Weston in forum Excel General
    Replies: 1
    Last Post: 02-13-2006, 11:30 AM

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