If your array is in a range of cells, then you could simply use the =MIN function.
If your array is an "array constant" - i.e. NOT in cells, then I'm sure others can help. I don't happen to be "up" on the use of array constants.
Hope this helps. Please advise as to how you make out.
function MinArrVal()
minVal = arrayName(0)
for i = 0 to ubound(arrayName())
if arrayName(i)<minVal then
minVal = arrayName(i)
else
end if
next i
MinarrVal = minVal
end function
Your array would need to be "Public" for this to work as a function Rgds
~Geoff~
Pssssssssssssssst. ...the "proper" way of showing appreciation to Geoff, is to "award him a STAR".
This is done by simply clicking on the "*Mark this post as a helpful/expert post!" - located in the lower-left-corner of the contributor's posting.
Being relatively new to Tek-Tips, I'm sure you weren't yet aware of this accepted method of showing appreciation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.