Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

Options for using SMALL()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Conan Kelly - 23 Feb 2007 21:13 GMT
Hello all,

I would like to use the SMALL() function to look through a range (A2:A243)
to pick out a certain value.

The problem is that the values in that range are from 1 to 10 with each
value repeating multiple times (1, 2, 3.1, 3.2, 3.3, 4.1, 4.2, 4.3, 5, 6.1,
6.2, 7.1, 7.2, 7.3, 8, 9, & 10).  So SMALL() would need to be used in
conjunction with a function that would return an array of unique values.

Is there such a function?

If not, is there any websites out there with good tutorials for writing
UDF's?

I've written UDF's before, but I don't know how I would go about writing a
UDF that would return an *array* of values.

Thanks for any help anyone can provide,

Conan Kelly
T. Valko - 23 Feb 2007 21:38 GMT
So, what you want to do is find the nth smallest number but use only the
unique numbers?

1 = 1
1
2 = 2
2
3 = 3
4 = 4
5 = 5

Try this entered as an array using the key combination of CTRL,SHIFT,ENTER
(not just ENTER):

=SMALL(IF(ISNUMBER(rng),IF(MATCH(rng,rng,0)=ROW(rng)-MIN(ROW(rng))+1,rng)),n)

Where n = nth value you want

Biff

> Hello all,
>
[quoted text clipped - 17 lines]
>
> Conan Kelly
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.