Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Small,Frequency question

Ive a formula,
{=SMALL(IF(Sheet1!$A$2:$A$25000=Sheet2!$A$2,IF(She et1!$I$2:$I$25000<=-0.001,Sheet1!$M$2:$M$25000)),11)}but
the 11th largest number repeats itself more than once. I tried this formula,
=SMALL(IF(FREQUENCY(IF(Sheet1!$A$2:$A$25000=Sheet2 !$A$2,IF(Sheet1!$I$2:$I$25000<=-0.001,Sheet1!$L$2:$L$25000)),(IF(Sheet1!$A$2:$A$25 000=Sheet2!$A$2,IF(Sheet1!$I$2:$I$25000<=-0.001,Sheet1!$L$2:$L$25000)))0),(IF(Sheet1!$A$2:$ A$25000=Sheet2!$A$2,IF(Sheet1!$I$2:$I$25000<=-0.001,Sheet1!$L$2:$L$25000)))),11)but
it returned an #N/A.
I tried a different scenario using the formula
=SMALL(IF(FREQUENCY(Sheet1!$L2:$L25,Sheet1!$L2:$L2 5)0,Sheet1!$L2:$L25),9)
and it worked perfectly (once the range didnt have any blank cells). How do
I rectify the problem, and make it work to exclude the blank cells.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Small,Frequency question

So, you want to extract the nth smallest. Are you extracting the 1st, 2nd,
3rd, 4th etc smallest also?

If so, then what you can do is use 1 formula to extract the 1st smallest
then use another formula to extract the next smallest that is greater than
the previous smallest. This eliminates returning duplicates which is what it
seems like you want to do.

Extract the 1st smallest (also known as the MIN). Array formula entered in
say A1:

=MIN(IF(Sheet1!$A$2:$A$25000=Sheet2!$A$2,IF(Sheet1 !$I$2:$I$25000<=-0.001,Sheet1!$M$2:$M$25000)))

Then, in A2 array entered and copied down:

=MIN(IF(Sheet1!$A$2:$A$25000=Sheet2!$A$2,IF(Sheet1 !$I$2:$I$25000<=-0.001,IF(Sheet1!$M$2:$M$25000A1,Sheet1!$M$2:$M$25 000))))

--
Biff
Microsoft Excel MVP


"Sorority Girl" <Sorority wrote in message
...
I've a formula,
{=SMALL(IF(Sheet1!$A$2:$A$25000=Sheet2!$A$2,IF(She et1!$I$2:$I$25000<=-0.001,Sheet1!$M$2:$M$25000)),11)}but
the 11th largest number repeats itself more than once. I tried this
formula,
=SMALL(IF(FREQUENCY(IF(Sheet1!$A$2:$A$25000=Sheet2 !$A$2,IF(Sheet1!$I$2:$I$25000<=-0.001,Sheet1!$L$2:$L$25000)),(IF(Sheet1!$A$2:$A$25 000=Sheet2!$A$2,IF(Sheet1!$I$2:$I$25000<=-0.001,Sheet1!$L$2:$L$25000)))0),(IF(Sheet1!$A$2:$ A$25000=Sheet2!$A$2,IF(Sheet1!$I$2:$I$25000<=-0.001,Sheet1!$L$2:$L$25000)))),11)but
it returned an #N/A.
I tried a different scenario using the formula
=SMALL(IF(FREQUENCY(Sheet1!$L2:$L25,Sheet1!$L2:$L2 5)0,Sheet1!$L2:$L25),9)
and it worked perfectly (once the range didn't have any blank cells). How
do
I rectify the problem, and make it work to exclude the blank cells.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
One small question... VIVEKMANE Excel Discussion (Misc queries) 3 November 8th 07 02:42 PM
ISERROR,SMALL,INDEX, MATCH, SMALL?? M.A.Tyler Excel Discussion (Misc queries) 1 May 2nd 07 04:08 AM
Frequency Function question kalhoun Excel Worksheet Functions 3 October 18th 06 06:58 PM
Frequency Question -- Please Help Rothman Excel Discussion (Misc queries) 2 March 9th 06 07:21 PM
histograms - frequency and relative frequency? confusedstudent Excel Discussion (Misc queries) 2 February 8th 06 08:20 AM


All times are GMT +1. The time now is 05:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"