Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default adding two highest numbers formulae

I need to know what is the formulae of adding the two highest/max numbers
within the cells selected.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default adding two highest numbers formulae

Hi Camma,

Try this one :
Sub MAX2()
MsgBox "First Max: " & Application.Max(Selection) _
& vbCr & "Second Max: " & Application.Max(Selection) - 1
End Sub


Rgds,

Halim


camma menuliskan:
I need to know what is the formulae of adding the two highest/max numbers
within the cells selected.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default adding two highest numbers formulae

Var1 = WorksheetFunction.Large(Range("A1:A5"),1) + _
Worksheetfunction.Large(Range("A1:A5"),2)

Charles Chickering

camma wrote:
I need to know what is the formulae of adding the two highest/max numbers
within the cells selected.


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
Average highest 16 numbers on a column of 32 numbers Frank[_10_] Excel Worksheet Functions 3 May 2nd 08 02:44 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
Adding 7 highest numbers Stu Excel Discussion (Misc queries) 5 October 11th 05 06:58 PM
Adding the 4 highest numbers from a set of 6 seasport Excel Discussion (Misc queries) 1 June 3rd 05 11:28 PM


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