AVG COLLECT formula

Answers
-
Hi @Paul Newcome,
I'm attempting a similar formula. I want to average days to complete if setup status is not "already exists" or "cancelled" but the formula seems to stop at the "AND" function:
=AVG(COLLECT([# Total Days to Setup Complete]:[# Total Days to Setup Complete], [Setup Status]:[Setup Status], AND(@cell <> "Already Exists", @cell <> "Cancelled")))
The formula is just returning the average days to setup complete without the exclusions. The @cell references are not highlighting like I would expect.
I also tried:
=AVG(COLLECT([# Total Days to Setup Complete]:[# Total Days to Setup Complete], [Setup Status]:[Setup Status], AND([Setup Status]1 <> "Already Exists", [Setup Status]1 <> "Cancelled")))
And received a "#divide by zero" error.
**Nevermind, solved it myself. Changed AND to OR, it worked fine.
Thank you,
Samantha Ludwig
-
Hi @Samantha Ludwig !
I will answer it down here so you can mark it completed and it will stop showing on the Unanswered Questions page :)
Switch the AND formula for an OR formula.
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with! Book time with me here: https://calendly.com/michelle-choate
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 452 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!