Formula to add the greatest and second greatest number or sets of numbers

UncleBajubjubs

Board Regular
Joined
Jul 11, 2017
Messages
111
Office Version
  1. 2010
Hello, I am looking for a formula to add 100% of the largest number or sets of that number with 50% of the second largest number or sets of that number.

For instance, the following numbers may be in cells
12
35
14
14
6
14

So the formula will first see 35 is the biggest number, and there is only one of it, and then it will see there are three 14s, the second biggest number. So it will take 100% of the largest number or set of the largest number (there is one 35, so 35) and add it to 50% of the second largest number or set of the second largest number (there are three 14s, so 50% of 14*3=21) so it will output 56 (35+21). I hope I explained that well enough, thanks!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
What if you have 2 35s? Do you want 2*35 + (3*14)/2?

Maybe:

=SUMIF(A1:A10,MAX(A1:A10))+SUMIF(A1:A10,LARGE(A1:A10,COUNTIF(A1:A10,MAX(A1:A10))+1))/2
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,822
Members
449,470
Latest member
Subhash Chand

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top