• Blocking Rows within Data used by a Pivot Tables

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Blocking Rows within Data used by a Pivot Tables

    Author
    Topic
    #355502

    I have to block certain data rows from my Pivot Tables for any number of reasons (e.g., the data may be incomplete for a new employee or an employee may have forgotten to record some key data). I can double click the name field to see whom I have blocked (they show up shaded) by scrolling down the names. But I would like the users to be able to see the names that are blocked without having to go through this. There must be some VBA code that can be written to do this. I am still a Novice at this VBA thing and would appreciate any help that I can get.

    One other question. Is there a way to automatically prevent certain rows from showing up (i.e., blank rows or rows produced by employees who have left the Company and whose data are no longer of interest)?
    Thanks to you all.
    Stephen

    Viewing 0 reply threads
    Author
    Replies
    • #779165

      Add a column to the data range (named, say, Include?) and put in No for rows which you do not want included. Add Yes to all the others.
      Expand the range of the Pivot Table to include this new column and take it in the Pivot Table layout as a page field. For this field, set Hide Item for “No”.

    Viewing 0 reply threads
    Reply To: Blocking Rows within Data used by a Pivot Tables

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: