Averaging Survey Data Based on Multiple Criteria

jeffj13

New Member
Joined
Jun 25, 2015
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am looking for a way (other than pivot tables) to average customer satisfaction survey results. Responses are given 1-5 and I need to average the total number of 5's for a category based on the total number of responses. With that said, not all questions are answered so I sometimes I have a blank answer and would not like to figure a blank answer into the average. I need to do this across State, Month and a time of day category (ex 7:00 AM - 11:59 AM and so on). I have been able to count the number of "5" answers and divide by the total number of survey returns, but like I said not all questions are answered so I need to base this on the number of answers given for that question. I figure I can do this with a COUNTIFS statement but the formula gets lengthy since I am counting multiple criteria in addition to 1-5 answers. Is there a way to do this with an AVERAGEIFS statement or possibly a better way? Here is my current formula that counts the number of 5 responses. Any help is greatly appreciated!

=COUNTIFS('Raw Data'!$A:$A,"Jan 2017",'Raw Data'!$C:$C,">=7:00 AM",'Raw Data'!$C:$C,"<=11:59 AM",'Raw Data'!$D:$D,"ARKANSAS",'Raw Data'!$L:$L,"5")

Column A = Month & Year
Column C = Time of Day Category
Column D = State
Column L = Satisfaction Question based on 1-5 that included blanks for no response given.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
You should be able to use the AVERAGEIFS function as it will not include any blank cells in the average range.
 
Upvote 0
I should have been more clear and I don't think an AVERAGEIFS function will work. My calculation is not a simple average but it is the total number who answered "5" (Totally Satisfied) divided by the total number of answers to the question. A respondent can answer nothing or 1-5.
 
Upvote 0
You could use SUMPRODUCT.
It is usually best not to reference whole columns as it can slow down calculations. If your data would not go below say row 5000 then in the formula below you would change reference to A2:A5000, etc.
Excel Workbook
ABCDEKLMN
1M/YTimeStateQuestionAverage
2Jan 20177:15 AMARKANSAS20.5
3Jan 201711:00 AMMaryland5
4Jan 201710:00 AMARKANSAS4
5Jan 201711:00 AMARKANSAS5
6Jan 20174:00 PMARKANSAS5
7Jan 20179:15 AMARKANSAS
8Jan 201710:30 AMARKANSAS5
9Feb 20179:15 AMMaryland3
10Feb 201710:30 AMMAINE2
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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