ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumif Deviation is positive (https://www.excelbanter.com/excel-worksheet-functions/250558-sumif-deviation-positive.html)

chg

Sumif Deviation is positive
 

I'd like to calculate the sum of all postive deviations of two time
series.
Is there a way to do this without additional calculations in seperate
column?
I tried this, but it doesn't seem to work

=sumif(C1:C100-B1:B100,"0")

Any suggestions?

Thy very much

chg

Sumif Deviation is positive
 
Kind of figured it out myself:

={SUM(IF((C1:C100-B1:B100)0,C1:C100-B1:B100))}

Thx for reading anyway

Ashish Mathur[_2_]

Sumif Deviation is positive
 
Hi,

Try this

=sumproduct((C1:C100-B1:B100)*(C1:C100-B1:B1000))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"chg" wrote in message
...

I'd like to calculate the sum of all postive deviations of two time
series.
Is there a way to do this without additional calculations in seperate
column?
I tried this, but it doesn't seem to work

=sumif(C1:C100-B1:B100,"0")

Any suggestions?

Thy very much




All times are GMT +1. The time now is 11:32 AM.

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