Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Reusing formula | Excel Discussion (Misc queries) | |||
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? | Excel Worksheet Functions | |||
Match then lookup | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |