ShiftyThor
New Member
- Joined
- Mar 4, 2013
- Messages
- 14
Hi all,
I am trying to work a formula where I can get the best 5 values out of the last 10 positive values. e.g.
[TABLE="width: 944"]
<colgroup><col><col span="12"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Null[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Null[/TD]
[TD]Positive[/TD]
[TD] [/TD]
[TD]This will be the Value[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]100.00[/TD]
[TD]50.00[/TD]
[TD]90.00[/TD]
[TD]40.00[/TD]
[TD]90.00[/TD]
[TD]0.00[/TD]
[TD]90.00[/TD]
[TD]80.00[/TD]
[TD]75.00[/TD]
[TD]80.00[/TD]
[TD]0.00[/TD]
[TD]80.00[/TD]
[TD] [/TD]
[TD]450.00[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Count[/TD]
[TD]Leave[/TD]
[TD]Count[/TD]
[TD]Leave[/TD]
[TD]Count[/TD]
[TD] [/TD]
[TD]Count[/TD]
[TD]Leave[/TD]
[TD]Leave[/TD]
[TD]Leave[/TD]
[TD] [/TD]
[TD]Count[/TD]
[TD] [/TD]
[TD]I need formula above[/TD]
[/TR]
</tbody>[/TABLE]
Therefore I need the formula in N2 to work find the last 10 positive values in the row A2:L2 (F2 and K2 will not be seleced), and then select the top 5 of those values being A2, C2, E2, G2, L2.
I think I have to use the Offset, Match and Max formula but am not sure.
Thanks all, hope the above makes sense.
I am trying to work a formula where I can get the best 5 values out of the last 10 positive values. e.g.
[TABLE="width: 944"]
<colgroup><col><col span="12"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Null[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Positive[/TD]
[TD]Null[/TD]
[TD]Positive[/TD]
[TD] [/TD]
[TD]This will be the Value[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]100.00[/TD]
[TD]50.00[/TD]
[TD]90.00[/TD]
[TD]40.00[/TD]
[TD]90.00[/TD]
[TD]0.00[/TD]
[TD]90.00[/TD]
[TD]80.00[/TD]
[TD]75.00[/TD]
[TD]80.00[/TD]
[TD]0.00[/TD]
[TD]80.00[/TD]
[TD] [/TD]
[TD]450.00[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Count[/TD]
[TD]Leave[/TD]
[TD]Count[/TD]
[TD]Leave[/TD]
[TD]Count[/TD]
[TD] [/TD]
[TD]Count[/TD]
[TD]Leave[/TD]
[TD]Leave[/TD]
[TD]Leave[/TD]
[TD] [/TD]
[TD]Count[/TD]
[TD] [/TD]
[TD]I need formula above[/TD]
[/TR]
</tbody>[/TABLE]
Therefore I need the formula in N2 to work find the last 10 positive values in the row A2:L2 (F2 and K2 will not be seleced), and then select the top 5 of those values being A2, C2, E2, G2, L2.
I think I have to use the Offset, Match and Max formula but am not sure.
Thanks all, hope the above makes sense.