Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default second biggest in array

hi! i have any array with numbers and i want to get the second biggest number
in the array. how can i do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default second biggest in array

Hi Arne,

Try something like:

'=============
Public Sub Tester()
Dim arr As Variant
Dim Res As Double

arr = Range("A1:A100").Value

Res = Application.Large(arr, 2)
MsgBox Res
End Sub
'<<=============


---
Regards,
Norman


"Arne Hegefors" wrote in message
...
hi! i have any array with numbers and i want to get the second biggest
number
in the array. how can i do this?



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
Biggest Loser Formula JSR929 Excel Discussion (Misc queries) 8 January 22nd 08 07:40 PM
Finding a name with biggest number Handyy Excel Worksheet Functions 11 February 6th 06 12:06 PM
Would u help me with a Biggest Movers type of comparison? skuba Excel Discussion (Misc queries) 13 January 24th 06 01:27 AM
Biggest commercial .xla file? RB Smissaert Excel Programming 6 December 18th 05 04:41 PM
Determining biggest variable Tommi[_2_] Excel Programming 2 February 3rd 04 02:36 PM


All times are GMT +1. The time now is 01:46 AM.

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"