Hi
I have been looking at this for 1 week and still cannot find an idea on how I can solve this. Some help would be greatly appreciated.
1. I have already achieve this and "count" the number of consecutive for all data. What I'm trying to do is to count the last 100 data.
2. count the consecutive L of last 10 data and sum the value next to L.
ie: SUPPOSE COUNT THE LAST 10 DATA THAT IS CONSECUTIVE "L" AND HIGHEST COUNT.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]row/col[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]L[/TD]
[TD]-1[/TD]
[TD]MAX "L" COUNT OF LAST 10 DATA[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]L[/TD]
[TD]-1[/TD]
[TD]MAX "L" COUNT OF LAST 10 DATA AND SUM THE VALUES NEXT TO THEM[/TD]
[TD]-32[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]L[/TD]
[TD]-1[/TD]
[TD]MAX "L" COUNT OF ALL DATA[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]L[/TD]
[TD]-2[/TD]
[TD]MAX "L" COUNT OF ALL DATA AND SUM THE VALUES NEXT TO THEM[/TD]
[TD]-7[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]L[/TD]
[TD]-2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]W[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]L[/TD]
[TD]-5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]L[/TD]
[TD]-10[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]W[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]W[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]W[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]L[/TD]
[TD]-6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]L[/TD]
[TD]-8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]L[/TD]
[TD]-2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]L[/TD]
[TD]-16[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]W[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]W[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]L[/TD]
[TD]-9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]W[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]W[/TD]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So far, I have only manage to get D3. using the following formula. Been trying to modify the formula but still can't get my head around it. wants to know how i can get D1, D2 and D4
=MAX(FREQUENCY(IF(IFERROR(A1:A20="L",FALSE),ROW(A1:A20)),
IF(IFERROR(1-(A1:A20="L"),FALSE),ROW(A1:A20))))
Thanks Heaps!
I have been looking at this for 1 week and still cannot find an idea on how I can solve this. Some help would be greatly appreciated.
1. I have already achieve this and "count" the number of consecutive for all data. What I'm trying to do is to count the last 100 data.
2. count the consecutive L of last 10 data and sum the value next to L.
ie: SUPPOSE COUNT THE LAST 10 DATA THAT IS CONSECUTIVE "L" AND HIGHEST COUNT.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]row/col[/TD]
[TD]A[/TD]
[TD]B[/TD]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[TD][/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]L[/TD]
[TD]-16[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]W[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]W[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]L[/TD]
[TD]-9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]W[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]W[/TD]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So far, I have only manage to get D3. using the following formula. Been trying to modify the formula but still can't get my head around it. wants to know how i can get D1, D2 and D4
=MAX(FREQUENCY(IF(IFERROR(A1:A20="L",FALSE),ROW(A1:A20)),
IF(IFERROR(1-(A1:A20="L"),FALSE),ROW(A1:A20))))
Thanks Heaps!
Last edited: