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
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!