Counting the number of Agrees and Disagrees depending on what department someone belongs to

Soni123456

New Member
Joined
Jan 12, 2017
Messages
5
Hi all,

Was wondering if someone could help me with this. I have a list of participants all belonging to different departments and they have all answered a number of items using the ratings "Strongly agree, Agree, No opinion, Disagree, Strongly disagree". I want to be able to count the number of agrees and strongly agrees for people belonging to only one department (i.e. HR).

A B C D E F
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
DepartmentQ1Q2Q3Q4Q5
HRAgreeStrongly AgreeAgreeDisagreeStrongly Agree
FinanceNo opinion/ Not applicableDisagreeNo opinion/ Not applicableAgreeAgree
ITDisagreeAgreeAgreeAgreeDisagree
ITAgreeStrongly AgreeAgreeAgreeStrongly Agree
ITNo opinion/ Not applicableAgreeAgreeNo opinion/ Not applicableAgree
FinanceAgreeStrongly AgreeStrongly AgreeAgreeAgree
HRAgreeAgreeDisagreeAgreeDisagree
HRAgreeAgreeDisagreeDisagreeDisagree
HRAgreeAgreeDisagreeDisagreeDisagree
FinanceAgreeStrongly AgreeAgreeAgreeStrongly Agree
FinanceNo opinion/ Not applicableAgreeAgreeNo opinion/ Not applicableAgree

<colgroup><col style="width: 100px"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"></colgroup><tbody>
</tbody>

I have used this formula but it doesn't seem to work :(

=if(A2:A12="HR",(countifs(B2:F12,"Strongly agree",B2:F12,"Agree"),""))

Thank you SO much in advance :)

 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,161
Messages
6,123,371
Members
449,097
Latest member
thnirmitha

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