Sumproduct with Average

chandrashekar

Well-known Member
Joined
Jul 15, 2005
Messages
529
Office Version
  1. 365
Platform
  1. Windows
Hi,

How to get average based on multi condition. I am getting count correctly but I need average. Average Column is at C. E2 & F2 mentioned in formula is DATE and D2 is Company Name and I need avergage based on this conditions.

Thanks in advance.

=SUMPRODUCT(--(A2:A2000>=E2);--(A2:A2000<=F2);--(B2:B2000=D2))

Regards,

Chandra Shekar B
 
Hi,

Even Max function is not working I changed the data but I am not getting max value.

Thanks

Chandra Shekar B
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Then something in your data is incompatible with sumproduct, you will have to use the array.
 
Upvote 0
Hi,

I tried MIN function which is not working. Please let me know what is the problem is.

=SUMPRODUCT(MIN(($A$2:$A$2000>=E2)*($A$2:$A$2000<=F2)*($B$2:$B$2000=D2)*$C$2:$C$2000))

Thanks

Chandra Shekar B
For a conditional MIN try this array formula**:

=MIN(IF($A$2:$A$2000>=E2,IF($A$2:$A$2000<=F2,IF($B$2:$B$2000=D2,$C$2:$C$2000))))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,187
Members
453,151
Latest member
Lizamaison

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