MAX SUM based on criteria (SUMPRODUCT array)

itfmm

Board Regular
Joined
Aug 12, 2014
Messages
57
Hello,

I'm trying to generate a lookup that would return a value in a column based on several criteria and the SUM MAX of two figures. Been using INDEX(SUMPRODUCT()) for all of my lookups up till now, so thinking it may be just a matter of appropriately nesting MAX, SUM, SUMPRODUCT, and INDEX but keep getting stuck on the logic.

Basically what I need:

Retrieve the value in Column E based on MAX SUM of columns G and L where A:A=O2,D:D=O4,F:F and K:K =P2, H:H=Q2

2qcjamq.png
[/IMG]

Thanks in advance!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi,

don't know if i understand you correctly but is this what your after:


Book1
ADEFGHIJKLMNOPQ
1program nameNote rateCouponIssue monthAdjusterSecurity typeCouponIssue monthSecurity price
2Conv302750208/01/2016-1,6FNMA 30208/01/201699156conv3009/01/2016FNMA 30
3Conv302875208/01/2016-1,23FNMA 30208/01/2016100969RatePrice
4Conv303000308/01/2016-0,81FNMA 30308/01/20161035782750-124206,42
5Conv303125308/01/2016-0,46FNMA 30308/01/201610531328750
6Conv3027502,509/01/2016-1,47FNMA 302,509/01/20161070783000-83415,2
7Conv3027502,509/01/2016-1,14FNMA 302,509/01/20161089533125-52390
8Conv3030003,509/01/2016-0,8FNMA 303,509/01/2016104269
9Conv3031253,509/01/2016-0,52FNMA 303,509/01/2016100750
Sheet1
Cell Formulas
RangeFormula
P4{=MAX(IF(($A$2:$A$9=$O$2)*($D$2:$D$9=O4)*($F$2:$F$9=$P$2)*($K$2:$K$9 =$P$2)*($H$2:$H$9=$Q$2),($G$2:$G$9)*($L$2:$L$9)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,685
Members
449,463
Latest member
Jojomen56

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