+ Reply to Thread
Results 1 to 7 of 7

Is it possible to get the percentage of an unfiltered list, from a filtered amount?

  1. #1
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Is it possible to get the percentage of an unfiltered list, from a filtered amount?

    I have a big spreadsheet in a pivot table.

    One of my Fields is "Retiring Within 5 Years." I have this as my Report Filter, and I'm selecting only those records which say "Yes."

    Then in my row labels, I've selected just the top ten job titles in several groups.

    I'd like to divide the "Count" value by the total (unfiltered) universe of employees in each group.

    Is this possible?

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Nowy Tomysl, Poland
    MS-Off Ver
    2019, O365
    Posts
    398

    Re: Is it possible to get the percentage of an unfiltered list, from a filtered amount?

    Of course, but only in Power Pivot using the calculation field

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Is it possible to get the percentage of an unfiltered list, from a filtered amount?

    Probably, using something like countifs, but to be of more assistance, we would need to see a sample of what you have - and what you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Re: Is it possible to get the percentage of an unfiltered list, from a filtered amount?

    FDibbins -

    I've attached a demo of what I'm talking about. You'll see in the pivot I have "Groups" and "Titles," and the individuals in their are either "Retiring" or not (Col. E).

    So in the pivot table, I've filtered to just those people who are retiring. You'll see in Column I what I'd like to get at: The Group row, I'd like to divide the number retiring by the unfiltered number in that Group, and then have it as a percentage. In the Title rows, I'd like to divide the number retiring by the unfiltered number sharing that title, as a percentage.

    Is there any way to do this in pivot? (I cannot install PowerPivot.)
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Is it possible to get the percentage of an unfiltered list, from a filtered amount?

    This proposed solution sets up a psuedo calculated field.
    First step is to continue with the calculations being made in the ranges below the pivot table by adding columns to count the instances of 'Yes' and 'No' using the formulas (respectively):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that populates I4:I23 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Re: Is it possible to get the percentage of an unfiltered list, from a filtered amount?

    Working through constructing this in my larger database right now - any chance you could help me parse the meaning of I4:I23 formula? I'm getting lost in it.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Is it possible to get the percentage of an unfiltered list, from a filtered amount?

    First "IF" of formula will display a blank if the corresponding cell in column G is either blank or "Grand Total".
    Second "IF" of formula will display 100% if the report filter is "All".
    Third "IF" will display if the report filter is "Yes",
    "Value if True" part of third "IF" -- if the name in column G is a group name then it will use the values in rows rows 32:37. If the name in column G isn't a group name then it will trigger the IFERROR and look for the name in rows 40:52. Once the name is found it will divide the corresponding value in column I by the corresponding value in column H.
    "Value if False" part of third "IF" -- will display if the report filter is "No" again first looking through the group names. Only difference is that it will divide the corresponding value in column J by the corresponding value in column H.
    A good way to see this in action would be to set the report filter to "Yes" and select cell I8 (Teller's percentage). Run the Evaluate Formula feature from the Formulas tab.
    Let us know if you have any questions.

+ 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 vba code to unfiltered all filtered col and unhide all hidden col through closed wb
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2014, 12:44 PM
  2. Getting sum total from percentage instead of percentage amount
    By Bluedemon909 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2013, 08:56 AM
  3. Paste from unfiltered sheet into filtered one
    By shootingstarz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-28-2013, 07:33 PM
  4. Pivot Tables: Filtered PT Showing "% of total" unfiltered data
    By ANS in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-07-2012, 05:22 AM
  5. Quickly toggle between filtered/unfiltered view for all worksheets in a workbook.
    By theirlaw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2012, 10:55 PM
  6. Copy unfiltered data to filtered list
    By madhur.kalra in forum Excel General
    Replies: 1
    Last Post: 02-20-2012, 04:11 AM
  7. VLookup and If for percentage within certain amount
    By boomersooner in forum Excel General
    Replies: 4
    Last Post: 04-23-2010, 11:04 PM
  8. Create Lotus Notes Draft email from filtered or unfiltered List
    By Jimmy0306 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-07-2009, 09:03 PM

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