+ Reply to Thread
Results 1 to 2 of 2

Differentiate between zeros and blanks in Pivot table

  1. #1
    Registered User
    Join Date
    11-05-2019
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    1

    Differentiate between zeros and blanks in Pivot table

    Hi,
    Currently I have a table that has partially entered data. eg:
    Row Tree Value1 Value 2 Value 3
    10 1 130 140 150
    10 2 0 20 10
    11 1
    11 2 20 0 0
    11 3 0 0 0

    This includes zeros (which is what the value should be) and blanks where no data has been entered yet.

    I Have "For empty cells show:" ticked with nothing in the box.

    The problem is when I put this data into a pivot table and create a calculated field such as:
    = Value1 + Value2 + Value3
    It treats the blanks and the Zeros as the same, as in 11-1 will show 0 (Incorrect) as well as 11-3 as 0 (Correct).
    I have tried:
    =IF(Field<>"",formula,"")
    =IF(Field="","",formula)
    =IF(Field="",NA(),formula)
    and many others but the formula still treats the blank as a Zero. Is there a way to differentiate between Zeros and Blanks?
    Thanks.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Differentiate between zeros and blanks in Pivot table

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. [SOLVED] Making Zeros into blanks in a pivot table
    By breazzyyy in forum Excel General
    Replies: 4
    Last Post: 10-27-2015, 02:37 PM
  2. Averaging data from a table by row name and ignoring blanks/zeros
    By HoneyBadger302 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 10:52 AM
  3. [SOLVED] Replace blanks with zeros inside a VBA created pivot
    By punter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2014, 05:09 PM
  4. Pivot Table: Zeros to Dashes
    By GreatLakesJK in forum Excel General
    Replies: 7
    Last Post: 01-28-2011, 04:16 PM
  5. Differentiate between column fields and data fields in a pivot table
    By whiteheadw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2009, 01:59 PM
  6. Data in my pivot table changes to zeros
    By MyrtlePeacock in forum Excel General
    Replies: 3
    Last Post: 01-05-2006, 10:30 AM
  7. Pivot Table and Zeros
    By Celeda in forum Excel General
    Replies: 0
    Last Post: 01-01-2005, 04:58 PM

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.6.0 RC 1