+ Reply to Thread
Results 1 to 7 of 7

Pivot table report help

  1. #1
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Pivot table report help

    Hi there,

    I have a simple pivot table set up which gives out a summary-level report. Please see the attached file. We would like to have standardized columns and they are:

    Reporting quarter Reporting period Site CCM targets total encounters.

    The current problem I have is that the values in the "total encounters" column of the pivot table are the same as the "CCM targets" column, which are NOT desirable.

    The filter on CCM target is set to "Yes", which is shown with no problem. But I also would like to show a column of value that represents the total number of encounters, so essentially including "yes" and "no" in the "total encounters" column

    Is this possible with a pivot table? Or anything other than a pivot table can do the job?

    Any comment/feedback is much appreciated.

    Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Pivot table report help

    Take a look at the SUMPRODUCT function:
    Please Login or Register  to view this content.
    See attached workbook.
    Attached Files Attached Files
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Re: Pivot table report help

    Quote Originally Posted by tlafferty View Post
    Take a look at the SUMPRODUCT function:
    Please Login or Register  to view this content.
    See attached workbook.
    Hi,

    Thank you.

    If the list is on-going, in other words, rows will increase on a weekly basis, how should I go about making the change in the formula to accommodate that?

    Please see the attached:

    I tried to do...

    Please Login or Register  to view this content.
    and I get #N/A errors in column B in the summation table below. So what I mean is....is there a formula that tells it to always look for the next available value? or this is getting into VBA?

    Thank you
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Pivot table report help

    You're getting the #N/A errors because your two arrays are of different size. $C$2:$C$110000 is much larger than $D$2:$D$8. Also, the way you have your report laid out, your formulas in the table are overlapping the results, so I'm not sure how your actual data is laid out.

  5. #5
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Re: calculate sums using SUMPRODUCT

    Quote Originally Posted by tlafferty View Post
    You're getting the #N/A errors because your two arrays are of different size. $C$2:$C$110000 is much larger than $D$2:$D$8. Also, the way you have your report laid out, your formulas in the table are overlapping the results, so I'm not sure how your actual data is laid out.
    Hi,

    I found a way to achieve what I had originally intended to do and it's actually not using pivot table.

    However, I'm still having some trouble getting it to work. Could you take a look at it please?

    Basically, I'm trying to use a summary-table to pull data from two worksheets within the same workbook by using SUMPRODUCT, but it's partially working and I am not sure how to fix the problem. It's also asking me to update values when I open or save because of missing links, which is strange...

    Formula is this:
    Please Login or Register  to view this content.
    If you get rid of the second SUMPRODUCT, it's working, but not if you add the two together. Notice that I'm using customized ranges, whose scope is all set to Workbook.

    Thank you
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Pivot table report help

    While the dynamic range names are cool, you're liable to run into problems using the SUMPRODUCT function since the ranges MUST be the same size. Also, you have typos in the name of your B Data Entry sheet (an extra space), so when Excel can't find the sheet name as you referred to it, it assumes you mean a closed workbook. If you want the name to be dynamic, I wouldn't reference row 1 in the offset formula since the count would errouneously contain the header. Your dynamic named ranges are your culprits here, so I'd start by correcting each of them. Have to run for now...

  7. #7
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Re: Pivot table report help

    Thank you Latterfy, problem solved.

    I wasn't very careful about naming my worksheet.

+ 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