Formula to sum and exclude

Copper Contributor

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

@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!

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

 

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. 

@MelStewart9655 

 

I think you can still use the sheet. Just filter out those items with zero. Select all the items and then click on Data >>Filter. Then click on column K header to uncheck zero:

 

wumolad_1-1598287103931.png

 

and click ok.

 

Then click on Ctrl + G, click on special and select visible cells only:

 

 

wumolad_0-1598286960065.png

 

This allows you to copy only the copied items which you can then paste to another sheet.

 

I have attached a sample for you.

 

Hope this helps.

 

Cheers

@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_0-1598292060686.png

 

thank you for your advice!  I appreciate it! @wumolad 

this is a great idea!  thank you! @amit_bhola 

@MelStewart9655

You are welcome