+ Reply to Thread
Results 1 to 3 of 3

stop pivot table from inserting zeros for blank values

  1. #1
    Registered User
    Join Date
    09-25-2009
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2003
    Posts
    2

    stop pivot table from inserting zeros for blank values

    I have a data set with three columns: date, percentage return, and a binary (0 or 1) variable describing whether an event occured or not.

    e.g

    Date, Percentage Return, Event
    1/1/10, 10, 0
    1/2/10, 9, 0
    1/3/10, 15, 0
    1/4/10, 25, 1
    1/5/10, 7, 1
    1/6/10, 13, 1

    I created a pivot table that has dates in the row, the binary variable in the column, and percentage return as the value fill. The pivot table lists each date consecutively and the percentage return in on of the two columns depending on whether the the return for the period was associated with the 1 or the zero. For example, the return for 1/1/10 would be in the 0 column, and the return for 1/14/10 would be in the 1 column.

    In the 1/1/10 example the pivot table would fill the 1 column with a zero value. That is my problem. I need the table to return a non value, blank cell. Currently my calculations based on the pivot table are skewed towards zero when the zero value is inserted in place of missing data.

    Any help would be greatly appreciated!!!

    Thanks
    cornman

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

    Re: stop pivot table from inserting zeros for blank values

    I don't have a copy of 2003 to hand but perhaps review the options re: blanks http://www.techonthenet.com/excel/pi...mpty_cells.php

    Irrespective of the above - if you care to outline the subsequent formulae we might be able to help resolve at that point - the data field in a Pivot can only handle numeric content in terms of underlying values (format aside)

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,300

    Re: stop pivot table from inserting zeros for blank values

    Hi comman,

    Do you have dates that have a zero for percent returned? If I understand the problem correctly you can remove all the data that has a zero for percent returned and that may make your pivot tables work like you want.

    Also in newer versions of Excel (I don't know if its available in 2003) you can filter out values of zero in your pivot data without removing them from the data set.

    I hope this is what you needed.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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