Latexman
Chemical
- Sep 24, 2003
- 6,945
I have a range of values. Some are 0 and the rest are > 0. I want the minimum of all the values > 0 using only one cell for the cell math. How?
Good luck,
Latexman
Good luck,
Latexman
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Worksheet_Calculate()
temp = 10000000
For a = 1 To 40
current = Cells(a, 1)
If current > 0 Then
temp = IIf(temp < current, temp, current)
End If
Next
Cells(3, 4).Value = temp
End Sub