Sum of Positive/Negative Sequence on Each Row

ibmy

Board Regular
Joined
Mar 4, 2020
Messages
112
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Need help on formula to apply in my research data.

(1)
Book1
ABC
1dataformula 1formula 2
2
3-0.1
4-0.2
50.20.2
60.10.3
70.10.40.4
80
9-0.1
100.10.1
110.10.2
120.10.3
130.20.50.5
140
Sheet2
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)
Book1
ABCD
1data Adata Bformula 1formula 2
2
30.50.10.50.5
40.3-0.5
50.10.10.1
60.10.10.2
70.10.30.30.3
800
90.70
10-0.90.5
11-0.90
120.110.1
130.71.10.80.8
1402
Sheet2
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.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Upvote 0
Solution
I'm glad to help you. Thanks for the feedback.
 
Upvote 0
@ibmy I was stuck on max value/end result for the longest time as I didn't read it properly and didn't understand what needs to be done.
once I read the solution from @DanteAmor I understood what you wanted.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,629
Members
449,241
Latest member
NoniJ

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top