Hi,
I would like to know if it is possible to have a formula where the search field of the array is dependent on the number I put into a cell. As an example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B [/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]7[/TD]
[TD]4.5[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9[/TD]
[TD]5[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]6[/TD]
[TD]3
[/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to perform a calculation on the above A1 to B4 that would give an answer that is less than the number I put in C.
So in D1 I would like the formula to calculate the the Max A1:A3 (which is 9) minus Min B1:B3 (which is 3), as this would give an answer that is less than 7 (C1).
In D2 I would like the formula to calculate the Max A1:A2 (which is 9) minus Min B1:B2 (which is 4.5), as this would give an answer that is less than 5 (C2).
In D2 I would like the formula to calculate the Max A1:A4 (which is 9) minus Min B1:B4 (which is 0), as this would give an answer that is less than 10 (C3).
Thanks!
Regards,
Peter
I would like to know if it is possible to have a formula where the search field of the array is dependent on the number I put into a cell. As an example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B [/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]7[/TD]
[TD]4.5[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9[/TD]
[TD]5[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]6[/TD]
[TD]3
[/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to perform a calculation on the above A1 to B4 that would give an answer that is less than the number I put in C.
So in D1 I would like the formula to calculate the the Max A1:A3 (which is 9) minus Min B1:B3 (which is 3), as this would give an answer that is less than 7 (C1).
In D2 I would like the formula to calculate the Max A1:A2 (which is 9) minus Min B1:B2 (which is 4.5), as this would give an answer that is less than 5 (C2).
In D2 I would like the formula to calculate the Max A1:A4 (which is 9) minus Min B1:B4 (which is 0), as this would give an answer that is less than 10 (C3).
Thanks!
Regards,
Peter