ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   summing only positive or negative values (https://www.excelbanter.com/excel-worksheet-functions/204847-summing-only-positive-negative-values.html)

Daniel Collison

summing only positive or negative values
 
I have a list of values, some of which are positive and some are negative. I
want to sum all positive values in the list, and all negative values in the
list.

Is anyone aware of a function that allows me to do this?

Thanks,

Rick Rothstein

summing only positive or negative values
 
You want the SUMIF function.

For positive values: =SUMIF(A1:A10,"0")

For negative values: =SUMIF(A1:A10,"<0")

--
Rick (MVP - Excel)


"Daniel Collison" wrote in
message ...
I have a list of values, some of which are positive and some are negative.
I
want to sum all positive values in the list, and all negative values in
the
list.

Is anyone aware of a function that allows me to do this?

Thanks,




All times are GMT +1. The time now is 07:35 PM.

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