Cells D4:I8 as listed.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]X[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Text1[/TD]
[TD]Text2[/TD]
[TD]Text3[/TD]
[TD]Text4[/TD]
[TD]Text5[/TD]
[TD]Lowest[/TD]
[/TR]
[TR]
[TD]1.12[/TD]
[TD]2.23[/TD]
[TD]2.21[/TD]
[TD]1.22[/TD]
[TD]3.21[/TD]
[TD]1.22[/TD]
[/TR]
[TR]
[TD]1.29[/TD]
[TD]2.12[/TD]
[TD]1.89[/TD]
[TD]0.00[/TD]
[TD]2.01[/TD]
[TD]2.01[/TD]
[/TR]
[TR]
[TD]1.17[/TD]
[TD]0.00[/TD]
[TD]2.17[/TD]
[TD]2.88[/TD]
[TD]2.90[/TD]
[TD]1.34[/TD]
[/TR]
</tbody>[/TABLE]
Cells D4:H4 are a named range of EX_C
Cells I6 contains the following formula:
{=SMALL(IF(EX_C<>"X",D7:H7,""),COUNTIF(D7:H7,"<=0")+1)}
The idea is that where cells D4:H4 are empty, this formula returns the lowest non zero value in the cells in the same row from columns D:H. It works, though it does give a #NUM error if all cells have a zero value, which is most unlikely.
Where D4:H4 might contain an X, this denotes that the cells in that column should be excluded from the workings of the formula, hence the table above does not show any of the values from columns D or E in the result of the formula in column I.
This works as long as at least two of the columns from D through H are not exlcuded with an X. If only one column is not excluded, the formula displays #NUM ! where it should show the last remaining value from the unchecked column.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Text1[/TD]
[TD]Text2[/TD]
[TD]Text3[/TD]
[TD]Text4[/TD]
[TD]Text5[/TD]
[TD]Lowest[/TD]
[/TR]
[TR]
[TD]1.12[/TD]
[TD]2.23[/TD]
[TD]2.21[/TD]
[TD]1.22[/TD]
[TD]3.21[/TD]
[TD]3.21[/TD]
[/TR]
[TR]
[TD]1.29[/TD]
[TD]2.12[/TD]
[TD]1.89[/TD]
[TD]0.00[/TD]
[TD]2.01[/TD]
[TD]2.01[/TD]
[/TR]
[TR]
[TD]1.17[/TD]
[TD]0.00[/TD]
[TD]2.17[/TD]
[TD]2.88[/TD]
[TD]2.90[/TD]
[TD]2.90[/TD]
[/TR]
</tbody>[/TABLE]
If there anything I can do within the formula to correct this or do i need to inject another column of trash data and hide it (yuk).
Many thanks.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]X[/TD]
[TD][/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Text1[/TD]
[TD]Text2[/TD]
[TD]Text3[/TD]
[TD]Text4[/TD]
[TD]Text5[/TD]
[TD]Lowest[/TD]
[/TR]
[TR]
[TD]1.12[/TD]
[TD]2.23[/TD]
[TD]2.21[/TD]
[TD]1.22[/TD]
[TD]3.21[/TD]
[TD]1.22[/TD]
[/TR]
[TR]
[TD]1.29[/TD]
[TD]2.12[/TD]
[TD]1.89[/TD]
[TD]0.00[/TD]
[TD]2.01[/TD]
[TD]2.01[/TD]
[/TR]
[TR]
[TD]1.17[/TD]
[TD]0.00[/TD]
[TD]2.17[/TD]
[TD]2.88[/TD]
[TD]2.90[/TD]
[TD]1.34[/TD]
[/TR]
</tbody>[/TABLE]
Cells D4:H4 are a named range of EX_C
Cells I6 contains the following formula:
{=SMALL(IF(EX_C<>"X",D7:H7,""),COUNTIF(D7:H7,"<=0")+1)}
The idea is that where cells D4:H4 are empty, this formula returns the lowest non zero value in the cells in the same row from columns D:H. It works, though it does give a #NUM error if all cells have a zero value, which is most unlikely.
Where D4:H4 might contain an X, this denotes that the cells in that column should be excluded from the workings of the formula, hence the table above does not show any of the values from columns D or E in the result of the formula in column I.
This works as long as at least two of the columns from D through H are not exlcuded with an X. If only one column is not excluded, the formula displays #NUM ! where it should show the last remaining value from the unchecked column.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Text1[/TD]
[TD]Text2[/TD]
[TD]Text3[/TD]
[TD]Text4[/TD]
[TD]Text5[/TD]
[TD]Lowest[/TD]
[/TR]
[TR]
[TD]1.12[/TD]
[TD]2.23[/TD]
[TD]2.21[/TD]
[TD]1.22[/TD]
[TD]3.21[/TD]
[TD]3.21[/TD]
[/TR]
[TR]
[TD]1.29[/TD]
[TD]2.12[/TD]
[TD]1.89[/TD]
[TD]0.00[/TD]
[TD]2.01[/TD]
[TD]2.01[/TD]
[/TR]
[TR]
[TD]1.17[/TD]
[TD]0.00[/TD]
[TD]2.17[/TD]
[TD]2.88[/TD]
[TD]2.90[/TD]
[TD]2.90[/TD]
[/TR]
</tbody>[/TABLE]
If there anything I can do within the formula to correct this or do i need to inject another column of trash data and hide it (yuk).
Many thanks.