Odd way to emulate excel formula counta()
![L_123](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
L_123
Community Champion
Needed to count all cells for a project, found how to do it, and am posting it here in case it helps someone else.
on range a
=countifs(A:A,@cell = @cell)
Tags:
Comments
-
Hi @L_123
Thanks for sharing!
Can I clarify, is this looking to count all cells in the column including blank cells?
=COUNT(A:A) should provide you with the number of non-blank cells.
If you're wanting to include blank cells, I had used this formula before (but your way is much cleaner!):
=COUNT(A:A) + COUNTIF(A:A, @cell = "")
Cheers 🙂
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
Yes, this counts all cells, including blanks
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 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!