Is there a function that i can use to find the smallest number in an array but not enclused 0.
I tried =Small(A1:A25,2)
but i have multiple zero's and it still picks zero.
I'm not great w/ vb but i can do a little if i need to.
Is there a function that i can use to find the smallest number in an array but not enclused 0.
I tried =Small(A1:A25,2)
but i have multiple zero's and it still picks zero.
I'm not great w/ vb but i can do a little if i need to.
A long way to go for it, but this does it.
=SMALL(A1:A25,COUNT(A1:A25)-COUNTIF(A1:A25,"=0")-1)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
=Min(IF(A1:A25<>0,A1:A25))
confirmed with CTRL+SHIFT+ENTER not just ENTER
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
I assume you have only positive numbers or zero....try either
=SMALL(A1:A25,COUNTIF(A1:A25,0)+1)
or an array formula
=MIN(IF(A1:A25,A1:A25))
confirmed with CTRL+SHIFT+ENTER
Try something like this for the smallest non-zero number:
![]()
Please Login or Register to view this content.
for the 2nd smallest:
Does that help?![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks