Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Second Smallest Number in a Set

It did not even occur to me to put the reference cells in parentheses, which
absolutely makes sense. Thanks to everyone for all of your help.

"Rick Rothstein" wrote:

To expand on OssieMac's response... you can use single cell references as well)

=SMALL((A1,A4,A7:A11),2)

The key is to place the list of cell references in parentheses.

--
Rick (MVP - Excel)


"OssieMac" wrote in message ...
Hi again,

I missed the part ablut the non consecutive cells until I saw the post by
JLGWhiz. However, the following also works:

In the worksheet:
=SMALL((A1:D1,F1:G1,I1:J1,L1,N1:O1),2)

In VBA:
MsgBox WorksheetFunction.Small(Range("A1:D1,F1:G1,I1:J1,L 1,N1:O1"), 2)


--
Regards,

OssieMac


"OssieMac" wrote:

Hi,

My testing indicates that Small does work.

On the worksheet: =SMALL(A1:O1,2)

In VBA: MsgBox WorksheetFunction.Small(Range("A1:O1"), 2)

Your quote: "I tried the SMALL function, but it only allows arrays". A range
is actually an array.

--
Regards,

OssieMac


"J_Squared" wrote:

I need to find the second smallest number in a set of non-consecutive cells,
where all the cells are in the same row. I tried the SMALL function, but it
only allows arrays as inputs. I know I can use MIN to find the smallest, but
I am stumped on how to ge the second smallest. Any suggestions would be
greatly appreciated.


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
Lookup for smallest number? JICDB Excel Worksheet Functions 8 August 1st 07 06:13 AM
Looking for the smallest number that isn't less than zero CharlieS Excel Worksheet Functions 3 October 2nd 06 04:03 PM
RETREIVING THE SMALLEST NUMBER ashaback Excel Worksheet Functions 1 July 28th 06 03:21 PM
smallest missing number Chris_t_2k5 Excel Discussion (Misc queries) 6 February 16th 06 07:22 PM
How to highlight the smallest number other than zero Kenny New Users to Excel 1 January 14th 06 06:41 AM


All times are GMT +1. The time now is 06:26 PM.

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

About Us

"It's about Microsoft Excel"