Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Michael Rekas
 
Posts: n/a
Default Getting the 2nd largest or smallest valuesin a range

Hi there

Th MAX & MIN functions return the largest & the smallest values in a
range.

Is there a way to get the 2nd largest and smallest values?

Any help appreciated.

Thanks

Michael
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=LARGE(rng,2)

=SMALL(rng,2)

In article ,
Michael Rekas wrote:

Hi there

Th MAX & MIN functions return the largest & the smallest values in a
range.

Is there a way to get the 2nd largest and smallest values?

Any help appreciated.

Thanks

Michael

  #3   Report Post  
Michael Rekas
 
Posts: n/a
Default

Thanks

I have combined with countif "=0"+1 to ignore zero values in the
range.

Much appreciated

Michael



On Fri, 28 Jan 2005 19:26:24 -0700, JE McGimpsey
wrote:

One way:

=LARGE(rng,2)

=SMALL(rng,2)

In article ,
Michael Rekas wrote:

Hi there

Th MAX & MIN functions return the largest & the smallest values in a
range.

Is there a way to get the 2nd largest and smallest values?

Any help appreciated.

Thanks

Michael


  #4   Report Post  
Ken Wright
 
Posts: n/a
Default

=SMALL(IF(A1:A100,A1:A100),2) array entered using CTRL+SHIFT+ENTER will
ignore 0s and blanks

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Michael Rekas" wrote in message
...
Thanks

I have combined with countif "=0"+1 to ignore zero values in the
range.

Much appreciated

Michael



On Fri, 28 Jan 2005 19:26:24 -0700, JE McGimpsey
wrote:

One way:

=LARGE(rng,2)

=SMALL(rng,2)

In article ,
Michael Rekas wrote:

Hi there

Th MAX & MIN functions return the largest & the smallest values in a
range.

Is there a way to get the 2nd largest and smallest values?

Any help appreciated.

Thanks

Michael




  #5   Report Post  
Michael Rekas
 
Posts: n/a
Default

Thanks Ken

I like it!

Regards

Michael

On Sat, 29 Jan 2005 15:14:22 -0000, "Ken Wright"
wrote:

=SMALL(IF(A1:A100,A1:A100),2) array entered using CTRL+SHIFT+ENTER will
ignore 0s and blanks




  #6   Report Post  
Ken Wright
 
Posts: n/a
Default

You're welcome :-)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Michael Rekas" wrote in message
...
Thanks Ken

I like it!

Regards

Michael

On Sat, 29 Jan 2005 15:14:22 -0000, "Ken Wright"
wrote:

=SMALL(IF(A1:A100,A1:A100),2) array entered using CTRL+SHIFT+ENTER will
ignore 0s and blanks




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
Passing a range name as an argument to the Index Function Michael Sharpe Excel Discussion (Misc queries) 3 September 5th 12 01:33 PM
ClearContents method on a passed range bryan New Users to Excel 2 January 19th 05 08:49 AM
Ranking cells largest to smallest jim314 Excel Discussion (Misc queries) 1 January 10th 05 09:01 PM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM
range names Pedro Excel Worksheet Functions 1 November 9th 04 06:27 PM


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