averageif based on form response
Hello,
Had a quick question I haven't been able to find a solution to.
I need to average a column based on a different column containing part of a name.
So for instance a facility will do the survey and I need to average their response to a question. The facility may be put in a number of ways, but always contain "pittsburgh" for example. So I have tried:
=AVERAGEIF({Survey Range},CONTAINS("pittsburgh", {KPI Survey Range 11}))
where the first reference is the range to average and the second is the range to lookup the name in. However, this gives me the average for the total range, including other facility's answers. Any help is appreciated.
Answers
-
Try this...
=AVERAGEIF({KPI Survey Range 11},CONTAINS("pittsburgh"), {Survey Range})
Let me know if it works.
AJ
-
@BullandKhmer that didn't work, interestingly enough if I use AVG and just average the cells, I get the correct value of 0.65. However, when I try to us AVERAGEIF I get a 1 or a 0 based on whether or not the word appears in the lookup column. Almost as if it were just returning, true, false.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives