Average If only picking up 1st of two criterias

afelice52183

New Member
Joined
Sep 12, 2017
Messages
5
Hello .. Been struggling with this formula =AVERAGEIFS(Tasks!$G:$G,Tasks!$A:$A,{"Northeast","NYC"},Tasks!$I:$I,"*Charter Legal*",Tasks!$H:$H,"Completed")


The formula is averaging correctly but only for Northeast not NYC :confused: any help would be greatly appreciated
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Wrap another "Average" at the start of your formula and add another closed bracket at the end:
=AVERAGE(AVERAGEIFS(Tasks!$G:$G,Tasks!$A:$A,{"Northeast","NYC"},Tasks!$I:$I,"*Charter Legal*",Tasks!$H:$H,"Completed"))
 
Upvote 0
Wrap another "Average" at the start of your formula and add another closed bracket at the end:
=AVERAGE(AVERAGEIFS(Tasks!$G:$G,Tasks!$A:$A,{"Northeast","NYC"},Tasks!$I:$I,"*Charter Legal*",Tasks!$H:$H,"Completed"))



OMG you are a master.thank you.. So my AVG should reflect 7.50 and its reporting 8.50? Any idea my lord I need a bottle of wine already
 
Upvote 0
Can you post some sample data?

E.g.

NE100
SE20
NE30
SE40
NW50

<tbody>
</tbody>

=AVERAGE(AVERAGEIFS(B1:B5,A1:A5,{"NE","SE"})) gives 47.5 which is (100+20+30+40)/4.
 
Last edited:
Upvote 0
Region
RegionDivisionCreated DateLast Modified DateIn flight Task Interval (Days)Completed Task Interval (Days)StatusSubject
Northeast10CompletedCharter Legal
Northeast10CompletedCharter Legal
Northeast5CompletedCharter Legal
Northeast4CompletedCharter Legal
Northeast3CompletedCharter Legal
Northeast10CompletedCharter Legal
NYC10CompletedCharter Legal
NYC10CompletedCharter Legal

<tbody>
</tbody>

Northeast / NYC TotalAverage Age
Charter Legal Open 47
Charter Legal Completed 88.500
Legal Review Open
Legal Review Complete
COI Open
COI Completed

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Assuming your table above starts in cell A1:

=AVERAGE(IF((H2:H9="Completed")*(I2:I9="Charter Legal")*(A2:A9={"Northeast","NYC"}),G2:G9))

Confirm with CTRL SHIFT ENTER as this is an array formula. It will give 7.75
 
Upvote 0

Forum statistics

Threads
1,215,756
Messages
6,126,692
Members
449,331
Latest member
smckenzie2016

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