or non-array alternative
=SMALL(I21:I23,COUNTIF(I21:I123,"<=0")+1)
or non-array alternative
=SMALL(I21:I23,COUNTIF(I21:I123,"<=0")+1)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thanks Guys,
I went for the second option. The only problem is that if there is not a value in I21:I23 then it displays #NUM!. I basically cannot have this as its getting pulled into a program that does our job costing. How can I make this #NUM! value zero?
Regards,
Sam
A few options, one would be:
=IF(COUNTIF(I21:I23,">0"),SMALL(I21:I23,COUNTIF(I21:I23,"<=0")+1),0)
Thanks DonkeyOte
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks