Averageif within a date range
malorie
✭✭✭
I am trying to get the average cost of contracts written within each month of the year.
=AVERAGEIF({R2 Scheduled Date}, AND(@cell >= Feb2, @cell <= Feb3), {Total Gross}) is returning "$0.00"
Any suggestions?
Answers
-
Also have tried the following but I am only getting a #UNPARSEALE error in response.
=AVG(COLLECT({Total Gross}, {R2 Scheduled Date}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2024))))
-
Hi @malorie
You almost had it with your second formula. Just remove the final parenthesis.
=AVG(COLLECT({Total Gross}, {R2 Scheduled Date}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2024)))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!