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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!