+ Reply to Thread
Results 1 to 5 of 5

filter in pivottable

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    filter in pivottable

    Hello. I have a value field that counts occurences. How can I filter this count so it only counts particular text values?

  2. #2
    Registered User
    Join Date
    03-12-2015
    Location
    UK
    MS-Off Ver
    2013 & 2010
    Posts
    27

    Re: filter in pivottable

    Hi. Ideally you would do this quite easily by nesting the SUBTOTAL and COUNTIF functions together, with the idea being the SUBTOTAL function would limit the cells counted for the text determined by the COUNTIF function to visible cells only. However this is not possible in Excel as the SUBTOTAL function can not be combined with criteria based functions (COUNTIF, AVERAGEIF, SUMIF). There is way around this using a more complex method which nests the SUMPRODUCT, SUBTOTAL, AND OFFSET functions. It is excellently explained here: https://exceljet.net/formula/count-v...-with-criteria

  3. #3
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: filter in pivottable

    You can drag and drop the text variable in question to the report filter field, click the arrow next to the variable name above the pivot and choose "Select multiple values".

  4. #4
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    Re: filter in pivottable

    @ timiop2011. I'm not sure what you are talking about haha. How does that relate to a pivottable?

    @estige. I'll try that out. It's interesting that when you apply that filter it impacts the row instances as well. For example, it only shows the rows that have that value that you filtered on. For example, customers are in rows, type of sales is in values (discount, normal). When I click on filter to normal, it only shows contracts with at least a 1 count for normal, whereas when you have all it shows all contracts even if they didn't have a sale.

    Thanks.

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

    Re: filter in pivottable

    You get better result on your question if you add a small excel file, without confidential information.

    Please also add the expected results manualy in your file.
    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.

+ 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. PivotTable Column Filter VBA
    By wilfrid147 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2015, 05:17 AM
  2. PivotTable Filter
    By Aeroice in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-14-2014, 12:14 PM
  3. Filter reference in a PivotTable
    By Domino49 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 12-04-2012, 04:14 AM
  4. Changing PivotTable Filter with VBA
    By elflacoalto in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-29-2011, 08:51 AM
  5. Date Filter in PivotTable
    By pakiyabhai in forum Excel General
    Replies: 5
    Last Post: 05-27-2010, 05:22 AM
  6. PivotTable Filter Update
    By yonyon7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-24-2007, 06:00 PM
  7. PivotTable Filter
    By yonyon7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-05-2007, 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