Formula to average a range in another sheet corresponding to cells that contain parts of text
I can't seem to beat this formula. I've tried COUNTIF, COLLECT, CONTAINS, and when I'm not getting an error I'm getting 0.
I want to see the average of successful deliveries below for all Up to Date emails in Q1. In the sheet I'm working with I'm trying to say: If any cell in the Month/Year/Email column contains the words "Q1 2017 Up to Date" then show the average of successful deliveries. I'm working on this in another sheet where I'm referencing each column range.
Best Answer
-
Syntax error. I got the format of the contains formula wrong
=avg(collect({successful deliveries}, {Month/year/email},and(contains("Q1",@cell),contains("2017 Up to Date",@cell
My bad.
Answers
-
=avg(collect({successful deliveries}, {Month/year/email},and(contains(@cell, "Q1"),contains(@cell,"2017 Up to Date"
Give that a try and see if it works for you.
-
@L@123 I'm getting a DIVIDE BY ZERO error
-
Syntax error. I got the format of the contains formula wrong
=avg(collect({successful deliveries}, {Month/year/email},and(contains("Q1",@cell),contains("2017 Up to Date",@cell
My bad.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!