+ Reply to Thread
Results 1 to 4 of 4

Removing Data from Pivot with zero values

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Removing Data from Pivot with zero values

    Hi,

    I have a worksheet with columns A to E which hold the following data:-

    Week No, Budget Code, Budget Description, Name and Hours

    However, as you can see in the attached spreadsheet there is not always a value in the hours field.

    What I want to achieve is to automatically exclude any of the rows of data in the Pivot table that includes zero in the hours field (such as the rows highlighted in yellow) and also not to show if/when the pivot table is refreshed.

    Any help would be gratefully appreciated


    Many thanks in advance

    Regards


    Rob

    N.B. Excel version 2003
    Attached Files Attached Files
    Last edited by VBA Noob; 04-23-2009 at 03:56 AM. Reason: To Mark Resolved
    Rob

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Removing Data from Pivot with zero values

    If you keep the Hours as a Row Field you can just deselect 0 as a value to list. If you remove the Hours from being a Row Field it may be best to add a field to your source that flags if hours >=0 .. True/False kind of thing and use that Field as a Page Field set to TRUE ... thereby excluding 0 hour records.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Removing Data from Pivot with zero values

    cant you just right click hours select field hide 0
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Thumbs up Re: Removing Data from Pivot with zero values

    DonkeyOte

    many thanks for your assistance in this matter, your suggestions worked as required.

    Regards


    Rob

+ 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