#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Using Small

Hi all

How would I add the SMALL function to the formula below to ensure my results
were sorted?

=INDEX($A$3:$A$11,MATCH(0,COUNTIF($B$2:B2,$A$3:$A$ 11),0))

Further more, would anyone be so kind as to explain how the SMALL function
works in a formula like this or point me in the right direction of an
explanation?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Using Small

=INDEX($A$2:$A$11,MATCH(SMALL(COUNTIF($A$2:$A$11," <"&
$A$2:$A$11),ROW(1:1)),COUNTIF($A$2:$A$11,"<"&$A$2: $A$11),0))

It works by counting how many items are smaller than each data element, and
then uses SMALL with the row number to extract from the list that count,
which it matches back against the same count list to get the index, which it
passes to INDEX to get the actual element.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"PH NEWS" wrote in message
...
Hi all

How would I add the SMALL function to the formula below to ensure my

results
were sorted?

=INDEX($A$3:$A$11,MATCH(0,COUNTIF($B$2:B2,$A$3:$A$ 11),0))

Further more, would anyone be so kind as to explain how the SMALL function
works in a formula like this or point me in the right direction of an
explanation?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Using Small

Cheers Bob. Very good
"Bob Phillips" wrote in message
...
=INDEX($A$2:$A$11,MATCH(SMALL(COUNTIF($A$2:$A$11," <"&
$A$2:$A$11),ROW(1:1)),COUNTIF($A$2:$A$11,"<"&$A$2: $A$11),0))

It works by counting how many items are smaller than each data element,

and
then uses SMALL with the row number to extract from the list that count,
which it matches back against the same count list to get the index, which

it
passes to INDEX to get the actual element.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"PH NEWS" wrote in message
...
Hi all

How would I add the SMALL function to the formula below to ensure my

results
were sorted?

=INDEX($A$3:$A$11,MATCH(0,COUNTIF($B$2:B2,$A$3:$A$ 11),0))

Further more, would anyone be so kind as to explain how the SMALL

function
works in a formula like this or point me in the right direction of an
explanation?






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
On the Y axis how do I make 0-100 big and then 100-500 small? Alcoa Charts and Charting in Excel 1 May 5th 06 01:46 AM
Small Business Financial Manager johnnywyoming Excel Discussion (Misc queries) 0 November 14th 05 11:10 PM
small help can save mee!!!!!!!! taesha Excel Discussion (Misc queries) 0 July 27th 05 09:26 PM
How do I compress small Workbook which shows 30 MB in size? netgd Excel Discussion (Misc queries) 1 May 23rd 05 09:26 PM
Small font on row & column numbers - wierd Mike R. Excel Discussion (Misc queries) 1 December 4th 04 12:32 PM


All times are GMT +1. The time now is 02:28 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"