Can Someone Change This Formula To Work On Filter Cells

NeedExcelHelp2021

New Member
Joined
Apr 17, 2021
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone Hope Your Doing Well.

I Found This Formula Online (Running W/L Streak) But It Don't Work On Filtered Cells,
Can Someone Change it To Work On Filtered Cells

Thank You Much Appreciated.

Book1
ABCDE
1W/LW/L Streak
25791
3(354)-1
47411
52,2422
62,9723
71,0444
82,7045
9(1,852)-1
10(2,308)-2
112661
12(404)-1
135771
141,5612
151,0533
16(242)-1
174971
186612
195453
202,0204
21
Sheet1
Cell Formulas
RangeFormula
D2:D20D2=IF(A2="",0,IF(ISNUMBER(INDIRECT(ADDRESS(ROW(A2)-1,4,4,1))),IF(INDIRECT(ADDRESS(ROW(A2)-1,4,4,1))>0,IF(A2>0,INDIRECT(ADDRESS(ROW(A2)-1,4,4,1))+1,-1),IF(A2<0,INDIRECT(ADDRESS(ROW(A2)-1,4,4,1))-1,1)),IF(A2>0,1,-1)))
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Should the streak break and restart when it hits a hidden row or continue past it?

This will work if the streak should be broken, I haven't looked at one to continue yet as that will be more complex so I'll wait to see if it's needed first.
Excel Formula:
=IF(SIGN(A2)=SIGN(AGGREGATE(9,5,A1)),N(D1)+SIGN(A2),SIGN(A2))
 
Upvote 0
Should the streak break and restart when it hits a hidden row or continue past it?

This will work if the streak should be broken, I haven't looked at one to continue yet as that will be more complex so I'll wait to see if it's needed first.
Excel Formula:
=IF(SIGN(A2)=SIGN(AGGREGATE(9,5,A1)),N(D1)+SIGN(A2),SIGN(A2))
Thank You For The Reply

I need it to continue when i hit hidden row
 
Upvote 0
sorry to bother you again, but can you change the formula to work with sum instead of count, try changing subtotal 3 to 9 but don't work
If you could help that would be awesome


Book1
ABCDEF
1W/LW/L StreakW/L Streak $
2$ 5791$ 579
3$ (354)-1$ (354)
4$ 7411$ 741
5$ 2,2422$ 2,242
6$ 2,9723$ 5,214
7$ 1,0444$ 6,258
8$ 2,7045$ 8,962
9$ (1,852)-1$ (1,852)
10$ (2,308)-2$ (4,160)
11$ 2661$ 266
12$ (404)-1$ (404)
13$ 5771$ 577
14$ 1,5612$ 2,138
15$ 1,0533$ 3,191
16$ (242)-1$ (242)
17$ 4971$ 497
18$ 6612$ 1,042
19$ 5453$ 1,587
20$ 2,0204$ 3,607
21
Sheet1
Cell Formulas
RangeFormula
D2:D20D2=IF(SUBTOTAL(3,A2)=1,IFERROR(IF(SIGN(A2)=SIGN(D1),N(D1)+SIGN(A2),SIGN(A2)),SIGN(A2)),N(D1))
 
Upvote 0
Try this in E2 and fill down
Excel Formula:
=IF(ABS(D2)=1,A2,SUBTOTAL(9,A2)+N(E1))
 
Upvote 0
It works for me with filtered rows, I would need to see an example where the result is incorrect to figure out the reason why.
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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