Forum Discussion

MelStewart9655's avatar
MelStewart9655
Copper Contributor
Aug 21, 2020

Formula to sum and exclude

Hi,

I am trying to create a formula that will look up customer name and amount from one sheet and match it the customer name on a different sheet. I would like it to also not include customers that have a 0.00 amount.  

This is what I have so far: =SUMIF('COGS Breakdown'!$A:$A,'Import Passportal SI'!G3,'COGS Breakdown'!$O:$O)

I just need the additional formula for to exclude values that are 0

8 Replies

  • wumolad's avatar
    wumolad
    Iron Contributor

    Hi MelStewart9655 

     

    As already suggested by amit_bhola, you need to provide more information for clarity.

     

    Excluding and including zero should produce the same result. Also, you stated that you wanted to look up some customers from one sheet, and compare to another, I am wondering how this can be achieved by using SUMIF.

     

    If you can share the file after removing the confidential information, that will be useful.

     

    Cheers

     

    • MelStewart9655's avatar
      MelStewart9655
      Copper Contributor

      Hi wumolad 

       

      Please see attached my excel spreadsheet.  I use this to import COGS using this sheet.  I basically don't want a large list of companies that have 0 amount, as this will be part of the journal entry to be imported.   So if I am able to somehow exclude companies with a 0 amount, it will be much cleaner. 

      • amit_bhola's avatar
        amit_bhola
        Iron Contributor

        MelStewart9655 , In attached file, i used your already made sheet as a temporary calculation, and out of it, filtered out only the non-zero companies as you desire. It gets filtered automatically. Only take care to drag down the formulas enough so that the formula region is more down below the data region.

         

         

  • amit_bhola's avatar
    amit_bhola
    Iron Contributor

    MelStewart9655 , it would be better if you attach a file with example data. Reading your question, it creates a doubt about intent and aim, since, you are trying to achieve a sum and want to exclude 0 (zeroes), so how the result of sum would get affected whether or not zeroes are included? Obviously, we're not able to understand the query, for which, an attachment with example data (and probably a typed, manually formulated result that you expect) would help!

Resources