ibmy
Board Regular
- Joined
- Mar 4, 2020
- Messages
- 134
- Office Version
- 2016
- Platform
- Windows
Hi Excel Experts ?
Sample of 20k row data I face weekday :
Found similiar thread ( Ignoring Blank cells find Sum, count no. Of negative numbers ) but it for Negative numbers, blank cell and not continous sum for each row.
Rule for Sum of Negative ( Exclude 0 ) :
1. Start with Negative value.
2. Stop sum if value are Positive or 0. ( >=0 )
3. Start new find for Negative value on next row.
Rule for Sum of Negative ( Include 0 ) :
1. Start with Negative value.
2. Stop sum if value is Positive. ( >0 )
3. Start new find for Negative value on next row.
Rule for Sum Postive (Exclude 0,<=0 & Include 0,<0 ) same as above, just opposite of it.
Thanks.
Sample of 20k row data I face weekday :
dx 2.1.21.xlsb | |||||||
---|---|---|---|---|---|---|---|
B | C | D | E | F | |||
1 | Sum of Negative | Sum of Positive | |||||
2 | Value | Exclude 0 | Include 0 | Exclude 0 | Include 0 | ||
3 | 0.1 | 0.1 | |||||
4 | 0 | ||||||
5 | 0 | ||||||
6 | 0.1 | 0.1 | 0.2 | ||||
7 | -0.4 | -0.4 | -0.4 | ||||
8 | 1 | 1 | 1 | ||||
9 | -0.6 | ||||||
10 | -0.2 | -0.8 | -0.8 | ||||
11 | 0.6 | 0.6 | 0.6 | ||||
12 | 0 | ||||||
13 | -0.1 | -0.1 | |||||
14 | 0 | ||||||
15 | -0.3 | -0.3 | |||||
16 | 0 | ||||||
17 | -0.3 | ||||||
18 | -0.1 | ||||||
19 | -0.1 | ||||||
20 | -0.2 | ||||||
21 | -0.6 | -1.3 | -1.7 | ||||
22 | 0.1 | ||||||
23 | 0.3 | ||||||
24 | 0.4 | ||||||
25 | 0.4 | ||||||
26 | 0.1 | 1.3 | 1.3 | ||||
27 | -0.1 | -0.1 | -0.1 | ||||
28 | 1 | 1 | 1 | ||||
Sheet7 |
Found similiar thread ( Ignoring Blank cells find Sum, count no. Of negative numbers ) but it for Negative numbers, blank cell and not continous sum for each row.
Rule for Sum of Negative ( Exclude 0 ) :
1. Start with Negative value.
2. Stop sum if value are Positive or 0. ( >=0 )
3. Start new find for Negative value on next row.
Rule for Sum of Negative ( Include 0 ) :
1. Start with Negative value.
2. Stop sum if value is Positive. ( >0 )
3. Start new find for Negative value on next row.
Rule for Sum Postive (Exclude 0,<=0 & Include 0,<0 ) same as above, just opposite of it.
Thanks.