Formula Needed

baggarwal

Well-known Member
Joined
Jul 10, 2002
Messages
591
Hi All: I need a formula that will calculate the average based on multiple conditions.

Here is the sample data:
DLP English 10
DLP French 20
DLP English 10
STP French 10

I am looking for a formula that will look for a match of DLP (Column A) and English (Column B) and then will average the matches (i.e. (10+10)/2 =10)

Can someone please tell me how to do this.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try
=SUMPRODUCT(--(A1:A10="DLP"),--(B1:B10="English"),C1:C10) / SUMPRODUCT(--(A1:A10="DLP"),--(B1:B10="English"))
 
Upvote 0
You fail to tell us which version of Excel you are using. Mike's formula will work for all versions of Excel. If you're using Excel 2007 or better, you might find the averageifs() function a little more intuitive.

=AVERAGEIFS(C1:C4,A1:A4,"DLP",B1:B4,"English")
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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