Average with multiple criteria in Excel 2003

kamedonski

New Member
Joined
Jun 25, 2013
Messages
8
Office Version
  1. 2010
Platform
  1. Windows
Hi,

Please look at this formula:

=SUMPRODUCT(--(B1:B10=A1),--(C1:C10=A2)+(C1:C10=A3),D1:D10)

I would like to make same criteria averaging D1:D10 (IF B1:B10 matches A1, C1:C10 matches A2 or A3, average D1:D10. Tried with:

{=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,AVERAGE(IF(B1:B10=A1,IF(OR(C1:C10=A2,C1:C10=A3),D1:D10,"")))))} but it doesn't work nested with OR.

Many thanks in advance,
Filip
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try:
=(SUMPRODUCT(--(B1:B10=A1),--(C1:C10=A2),D1:D10)+SUMPRODUCT(--(B1:B10=A1),--(C1:C10=A3),D1:D10))/(SUMPRODUCT(--(B1:B10=A1),--(C1:C10=A2))+SUMPRODUCT(--(B1:B10=A1),--(C1:C10=A3)))
 
Upvote 0
Did you try with + instead of OR like in your SUMPRODUCT formula?

=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,AVERAGE(IF(B1:B10=A1,IF(((C1:C10=A2)+(C1:C10=A3)),D1:D10,"")))))
 
Upvote 0

Forum statistics

Threads
1,216,763
Messages
6,132,583
Members
449,737
Latest member
naes

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