Sum if large

Samgar

New Member
Joined
Apr 9, 2015
Messages
12
I'm trying to combine a Sum IF and large formula.
My Sum if formula is =SUM.iF($P$7:$P$300;$A$7:$A$300;AA39;$R$7:$R$300;"Forc")

And I want to sum the largest of $P$7:$P$300, i would like, if possible, how many of the largest numbers to sum to be based on AH39.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi,

an attempt.

Numbers in P7:P300 (294 numbers), in AH39 the number of largest numbers under the condition R7:R700="forc" you need to sum.


Code:
=SUMPRODUCT(IFERROR(AGGREGATE(14,6,P7:P300/(R7:R300="Forc"),INDEX(((ROW(7:300)-6)<=AH39)*(ROW(7:300)-6),)),0))



Regards
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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