Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Jun 2005
    Posts
    386
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Can a pivot table be made to have formulas built in like an ISERROR or % of total. I have in mind something like the attached where i set up the raw data, the pivot table and the finished report where i calculated the % of variance change.

    Thank you.
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    In the attached version, I have added the percentage to the pivot table as a calculated field with formula =Difference/'Last Year'.
    I specified percentage as number format in the field settings for the calculated field.
    Finally, I went into Table Options and ticked the check box "For error values show", left the box next to it blank and clicked OK.
    Attached Files Attached Files

  3. #3
    3 Star Lounger
    Join Date
    Jun 2005
    Posts
    386
    Thanks
    3
    Thanked 0 Times in 0 Posts
    What steps were taken to add a calculated field to the pivot table and then format this field in the field settings? Was this done outside of the building of the pivot table process?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    To create the calculated field:
    - Click in the pivot table (after it has been created).
    - Select Pivot Table | Formulas | Calculated field... from the Pivot Table toolbar.
    - Enter a name for the calculated field in the Name box, and enter the expression in the Formula box (you can insert field names from the list at the bottom).
    - Click Add, then close the dialog.

    To format it:
    - Click in any cell of the calculated field.
    - Select Pivot Table | Field settings... from the Pivot Table toolbar.
    - Click Number... and specify the desired number format.
    - Click OK twice to close the dialog.
    You can also pull up the Pivot Table Wizard again, click Layout... and double-click the calculated field that has now appeared in the Data area.

  5. #5
    3 Star Lounger
    Join Date
    Jun 2005
    Posts
    386
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Many Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •