Max / sumproduct

Nathalie Sicard

New Member
Joined
May 23, 2010
Messages
39
Hello, it's me again

I have a table with these columns:
A: Zone
B: Territory
C: Product
D: Store format
E: Store name
F: Sales (some data is non numeric)

So what I need to do is a sheet in which I have 2 drop down values: product and storeformat.

Given those drop down values (which might change) I need to display the highest sales values in each territory.

I'm doing this:

=SUMPRODUCT(--(S2M!$C$7:$C$506='Avance Nat'!B3),--(S2M!$L$7:$L$506='Avance Nat'!B6),max(S2M!$AI$7:$AI$506))

But it's definitely not working ='(

Thank you!
 

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

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
Try this array formula

=MAX(IF((S2M!$C$7:$C$506='Avance Nat'!B3)*(S2M!$L$7:$L$506='Avance Nat'!B6),S2M!$AI$7:$AI$506))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,923
Messages
5,834,382
Members
430,282
Latest member
MeredithD26

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
Top