Countifs and Averages using multiple conditions

Jazz Jones

New Member
Joined
Mar 13, 2017
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Good morning!

I might just need a coffee, but...

I have a data set that I need to calculate averages in.
In Column A, I have Function, in Column H I have Status, in Column S I have a calculated field showing No. of Weeks Active.

I need to pull out info using the following example:

Countif
Column A = 'Chief Operating Officer', and Column H = 'Future Joiner' OR 'Starter Commenced' (it should be noted that there is one other Status option in Column H, which is 'Active' - not sure if it might be easier to count and exclude active, rather than tot up the other two options).


I also need to pull:
If Column A = 'Chief Operating Officer', and Column H = 'Future Joiner' OR 'Starter Commenced', calculate the average of weeks active



I KNOW there's a simple solution to this, but it's early(ish) in the morning, and it's driving me barmy.

Thanks for your help, community!

Jasmine
 

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
Is this what you are after?


Excel 2010
ABCDEFGHIJKLMNOPQRSTUVW
1FunctionStatusNo.Weeks Active
2Chief Operating OfficerFuture Joiner2Count2
3Chief Operating OfficerStarter Commenced3Avg Active2.5
4Chief Operating OfficersFuture Joiner3
Sheet1
Cell Formulas
RangeFormula
W2=SUMPRODUCT(--($A$2:$A$4="Chief Operating Officer"),($H$2:$H$4="Future Joiner")+($H$2:$H$4="Starter Commenced"))
W3=SUMPRODUCT($S$2:$S$4,--($A$2:$A$4="Chief Operating Officer")*(($H$2:$H$4="Future Joiner")+($H$2:$H$4="Starter Commenced")))/W2
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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