Get average of a column if another column is checked?
Hi everyone!
I was hoping to get assistance on writing a formula.
I was wondering if there's a way to get the average of numbers "RWA Accepted to NTP Actual" if "FY20 RWA" column is checked? Thank you!
Best Answers
-
Try this:
=AVG(COLLECT([RWA Accepted to NTP Actual]:[RWA Accepted to NTP Actual], [FY20 RWA]:[FY20RWA], 1))
-
Make sure the spaces in your column names are right in the formula. Looks like I forgot a space in the [FY20 RWA]:[FY20 RWA] part. :-)
Answers
-
Are you trying to average the RWA Accepted to NTP Actual column? So if any row has the FY20 checkbox checked, then include it in the Average for the column?
-
@Jon Baier yes, that is correct. Thanks!
-
Try this:
=AVG(COLLECT([RWA Accepted to NTP Actual]:[RWA Accepted to NTP Actual], [FY20 RWA]:[FY20RWA], 1))
-
Make sure the spaces in your column names are right in the formula. Looks like I forgot a space in the [FY20 RWA]:[FY20 RWA] part. :-)
-
@Jon Baier works perfectly, thank you so much! You are a lifesaver.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 463 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!