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