Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 112
Default Formula Help - Squaring three highest numbers

I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formula Help - Squaring three highest numbers

=SUMPRODUCT(LARGE(A1:A5,ROW(INDIRECT("1:3")))^2)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Denise" wrote in message
...
I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Formula Help - Squaring three highest numbers

In your example, wouldn't the two 4's and the 6 be the largest 3 values...not
just one 4 and the 6?

If that's true, try this formula:
=SUMPRODUCT(LARGE(A1:A5,{1,2,3})^2)

With the numbers 1,2,4,4,6 that formula returns
=6^2 + 4^2 + 4^2
=36+16+16
=68

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Denise" wrote:

I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Formula Help - Squaring three highest numbers

=SUMPRODUCT(LARGE(A1:A6,{1,2,3})^2)

"Denise" wrote:

I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Formula Help - Squaring three highest numbers

Retraction of my comment....
I had typed a 6 instead of a 5 as the last digit.
Using your actual values of 1,2,4,4, and 5, of course the result would be 57.

My apologies

***********
Regards,
Ron

XL2002, WinXP


"Ron Coderre" wrote:

In your example, wouldn't the two 4's and the 6 be the largest 3 values...not
just one 4 and the 6?

If that's true, try this formula:
=SUMPRODUCT(LARGE(A1:A5,{1,2,3})^2)

With the numbers 1,2,4,4,6 that formula returns
=6^2 + 4^2 + 4^2
=36+16+16
=68

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Denise" wrote:

I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 112
Default Formula Help - Squaring three highest numbers

I just found out that if the sum is greater than 75 I need for it to be 75.

So - if the sum comes out to be 82 then I need 75 for the answer.

Thanks.

"Denise" wrote:

I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Formula Help - Squaring three highest numbers

Try this:

=MIN(SUMPRODUCT(LARGE(A1:A5,{1,2,3})^2),75)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Denise" wrote:

I just found out that if the sum is greater than 75 I need for it to be 75.

So - if the sum comes out to be 82 then I need 75 for the answer.

Thanks.

"Denise" wrote:

I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Formula Help - Squaring three highest numbers



=MIN(75,SUMPRODUCT(LARGE(A1:A6,{1,2,3})^2))


"Denise" wrote:

I just found out that if the sum is greater than 75 I need for it to be 75.

So - if the sum comes out to be 82 then I need 75 for the answer.

Thanks.

"Denise" wrote:

I have a form that has six areas where a number of 1 - 6 will be entered.

I need a formula that will square the 3 highest numbers and and add the
three together -

Example -
1
2
4
4
5

The numbers 4 and 5 will be squared and added together for a total of 57

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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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