1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Remove Zeros from Data

Discussion in 'Ask an Excel Question' started by Tripp, Nov 14, 2017.

  1. Tripp

    Tripp Member

    Messages:
    55
    Hello,

    I have a formula which picks up certain data from a Pivot table. The formula has been working fine until I found some Zeros in the data which are being brought through and disrupting my charts down the line. The formula is as follows:

    =IFERROR(IF(GETPIVOTDATA("Result",PivotTable!$A$4,"Sample Date",$A580,"Determinand Name",C$1)="",NA(),GETPIVOTDATA("Result",PivotTable!$A$4,"Sample Date",$A580,"Determinand Name",C$1)),NA())

    I tried adding an OR function but it just makes the cell = #N/A. I know I can use IFS but that would make my formula very long with lots of repeating, surely there must be a better way?

    How can I add Zero as well as blank detection into this formula?

    Regards,

    Tripp
  2. NARAYANK991

    NARAYANK991 Excel Ninja

    Messages:
    15,817
    Thomas Kuriakose and Tripp like this.
  3. Tripp

    Tripp Member

    Messages:
    55
    Hi Narayan,

    Thanks so much, I have adapted the formula to the following, much sexier:

    =IFERROR(1/(1/GETPIVOTDATA("Result",PivotTable!$A$4,"Sample Date",$A581,"Determinand Name",C$1)),NA())

    Cheers!

Share This Page