Computing.Net > Forums > Office Software > need to create a program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

need to create a program

Reply to Message Icon

Name: morshed
Date: May 15, 2009 at 07:51:00 Pacific
OS: Windows Vista
CPU/Ram: pentium/2gb
Product: Intel / DUAL CORE
Subcategory: Microsoft Office
Comment:

i have a worksheet with five coloums of number inputs from which i need to select the highest number & then from the remaining i need to select two second highest numbers and average them. how can i create such a program.




Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: May 15, 2009 at 12:43:11 Pacific
Reply:

To return the highest number, try either MAX(A1:E3) or LARGE(A1:E3,1)

Before we can average the 2nd and 3rd highest numbers, we may need some more info.

What happens if the highest number repeats itself?

e.g. If the highest 4 numbers are 50, 50, 49 and 48 would you want to see 49.5 or 48.5 as your Average of "the two second highest numbers"?

If the highest number will never repeat itself anywhere in the range, or if you would accept 49.5 as the result of the example above, then this should work:

=AVERAGE(LARGE(A1:E3,2),LARGE(A1:E3,3))


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: need to create a program

Creating a .pdf file www.computing.net/answers/office/creating-a-pdf-file/7227.html

Need Help Creating a Macro www.computing.net/answers/office/need-help-creating-a-macro/8184.html

Unable to create personal folder files www.computing.net/answers/office/unable-to-create-personal-folder-files/9369.html