ibmy
Board Regular
- Joined
- Mar 4, 2020
- Messages
- 106
- Office Version
- 2016
- Platform
- Windows
Hi,
Need help on formula to apply in my research data.
(1)
Display sum for each row as long as it not break the rule.
For postive value rule:
Value on each row must >0
Reset sum when next row value <=0
Then, apply formula in Column C to show only max value/end result for each sequence in Column B.
(2)
This data a bit advance since it need to consider other column as well.
For postive value rule:
Value on each row Column A & B must >0
Reset sum when next row in Column A or B <=0
Then, apply formula in Column D to show only max value/end result for each sequence from Column C.
Need help on formula to apply in my research data.
(1)
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | data | formula 1 | formula 2 | ||
2 | |||||
3 | -0.1 | ||||
4 | -0.2 | ||||
5 | 0.2 | 0.2 | |||
6 | 0.1 | 0.3 | |||
7 | 0.1 | 0.4 | 0.4 | ||
8 | 0 | ||||
9 | -0.1 | ||||
10 | 0.1 | 0.1 | |||
11 | 0.1 | 0.2 | |||
12 | 0.1 | 0.3 | |||
13 | 0.2 | 0.5 | 0.5 | ||
14 | 0 | ||||
Sheet2 |
For postive value rule:
Value on each row must >0
Reset sum when next row value <=0
Then, apply formula in Column C to show only max value/end result for each sequence in Column B.
(2)
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | data A | data B | formula 1 | formula 2 | ||
2 | ||||||
3 | 0.5 | 0.1 | 0.5 | 0.5 | ||
4 | 0.3 | -0.5 | ||||
5 | 0.1 | 0.1 | 0.1 | |||
6 | 0.1 | 0.1 | 0.2 | |||
7 | 0.1 | 0.3 | 0.3 | 0.3 | ||
8 | 0 | 0 | ||||
9 | 0.7 | 0 | ||||
10 | -0.9 | 0.5 | ||||
11 | -0.9 | 0 | ||||
12 | 0.1 | 1 | 0.1 | |||
13 | 0.7 | 1.1 | 0.8 | 0.8 | ||
14 | 0 | 2 | ||||
Sheet2 |
For postive value rule:
Value on each row Column A & B must >0
Reset sum when next row in Column A or B <=0
Then, apply formula in Column D to show only max value/end result for each sequence from Column C.