Averaging a Column with blank entries
How would I go about composing a formula to find the average of a set of number in a column that would ignore blank cells?
Best Answer
-
You are missing the open parenthesis after the COLLECT function, and the range should be entered twice. Once to indicate what range we are going to average and then again to indicate which range we are going to evaluate.
=AVG(COLLECT({Request Tracker Range 9}, {Request Tracker Range 9}, @cell <> 0))
Answers
-
The AVG function should be ignoring blank cells already. If it is not, you can try:
=AVG(COLLECT({range to average}, {range to average}, @cell <> ""))
-
When I try it, I get a "DIVIDE BY ZERO" Error. I was assuming that was due to the blank cells but, if the cell has a zero in it, is that a problem?
-
Yes. Zeros will also do that to you. Try this instead.
=AVG(COLLECT({range to average}, {range to average}, @cell <> 0))
-
Thanks. Would that be different for an entire column (as the rows in that column grow daily)?
-
I get UNPARSEABLE on this: =AVG(COLLECT{ Request Tracker Range 9}, @cell <> 0))
-
You are missing the open parenthesis after the COLLECT function, and the range should be entered twice. Once to indicate what range we are going to average and then again to indicate which range we are going to evaluate.
=AVG(COLLECT({Request Tracker Range 9}, {Request Tracker Range 9}, @cell <> 0))
-
That works a treat. Thank you!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.2K Get Help
- 358 Global Discussions
- 198 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 135 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!