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)))
 
when i filter out Cell A5 and Cell A18 the result is incorrect
cell E8 result should be 7460 and cell E20 result should be 3062
Book2
ABCDE
1W/LW/L StreakW/L Streak $
2$ 5791$ 579
3$ (353)-1$ (353)
4$ 7401$ 740
6$ 2,9722$ 5,214
7$ 1,0443$ 6,258
8$ 2,7044$ 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
19$ 5452$ 1,205
20$ 2,0203$ 3,225
21
Sheet1
Cell Formulas
RangeFormula
D2:D4,D6:D17,D19:D20D2=IF(SUBTOTAL(3,A2)=1,IFERROR(IF(SIGN(A2)=SIGN(D1),N(D1)+SIGN(A2),SIGN(A2)),SIGN(A2)),N(D1))
E2:E4,E6:E17,E19:E20E2=IF(ABS(D2)=1,A2,SUBTOTAL(9,A2)+N(E1))
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Alex's formula wasn't doing quite what I thought, this looks like it works this time although I have only done a quick test.
Excel Formula:
=IF(ABS(AGGREGATE(9,5,D2))=1,A2,SUBTOTAL(9,A2)+N(E1))
 
Upvote 0
Alex's formula wasn't doing quite what I thought, this looks like it works this time although I have only done a quick test.
Excel Formula:
=IF(ABS(AGGREGATE(9,5,D2))=1,A2,SUBTOTAL(9,A2)+N(E1))
works perfectly(y)
Thank you So Much For Your hard Work Much Appreciated.
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,764
Members
448,991
Latest member
Hanakoro

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