+ Reply to Thread
Results 1 to 8 of 8

Thread: Pivot Table: Zeros to Dashes

  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2010
    Posts
    52

    Pivot Table: Zeros to Dashes

    I have a pivot table with many zeros throughout the sheet, and I would like to make those dashes instead. Any suggestions how I would go about accomplishing this task?

    I have tried the Pivot Table Options route, by changing "For empty cells show: -" but that has not worked since these cells are technically not empty.

    Thoughts? Much appreciated.

  2. #2
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    Re: Pivot Table: Zeros to Dashes

    Hi GreatLakesJK,

    I rarely say this, but I don't think you can do it. The Summation area of Pivot Tables does number only kinds of things. You want to put text in this area.

    I think you only get to pick from this list:
    http://msdn.microsoft.com/en-us/library/Aa195239.aspx
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  3. #3
    Registered User
    Join Date
    05-27-2010
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Pivot Table: Zeros to Dashes

    Ugh. I feared that. Are you sure there isn't some type of custom formatting you can implement to make this happen?

  4. #4
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    Re: Pivot Table: Zeros to Dashes

    Instead of trying to put dashes, look at table formatting.
    http://office.microsoft.com/en-us/ex...010013769.aspx
    This should give you a better visual affect than dashes. Also if you are getting zeros and don't want them, simply filter them out of your data.

    Perhaps some of the smart gurus have a suggestion.
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Pivot Table: Zeros to Dashes

    Note you can apply a Custom Number Format to your Data Fields and simply set format for 0 to be -

    Example Format: #,##0.00;[red](#,##0.00);-

  6. #6
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    Re: Pivot Table: Zeros to Dashes

    DonkeyOte has proven me wrong one more time.

    He keeps teaching me things about Excel I never knew That is good.

    I hate it when I give the wrong answer!!!

    I need to go study number formats a while.
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  7. #7
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

  8. #8
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    Re: Pivot Table: Zeros to Dashes

    I find in your second link above that you can do a custom format for values that equal to zero.

    The custom format of
    [=0]"---"
    will replace every zero with three dashes.

    Thanks for the links. I'll try to give better answers in the future.

    Search all my answers for "smart gurus" and correct them with better/right answers.

    I also find a way to insert a dash or any text for blank values by checking the
    For Empty cells show: show on the PivotTable Options dialog.
    Pictured at http://www.pivot-table.com/pivot-tab...07-pivot-table
    Last edited by MarvinP; 01-28-2011 at 03:30 PM.
    One test is worth a thousand opinions.
    Click the * 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)

Tags for this Thread

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.2.0