ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif (https://www.excelbanter.com/excel-worksheet-functions/211537-sumif.html)

VielExcel

sumif
 
Hi all,

I would like to know the sumif formula if I want to add all values 0, or all negative values in a column.

Dkline

sumif
 
=SUMIF(range of cells,"<0")

"VielExcel" wrote:


Hi all,

I would like to know the sumif formula if I want to add all values 0,
or all negative values in a column.




--
VielExcel


Pete_UK

sumif
 
Which column?

You could try something along these lines:

=SUMIF(check_column,"0",sum_column)

or

=SUMIF(check_column,"<0",sum_column)

so that it might look like:

=SUMIF(A:A,"0",B:B)

Hope this helps.

Pete

On Nov 25, 9:46*am, VielExcel
wrote:
Hi all,

I would like to know the sumif formula if I want to add all values 0,
or all negative values in a column.

--
VielExcel




All times are GMT +1. The time now is 01:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com