Formula for counting cells that have a letter or a number
TracyM
✭✭✭
Hi,
I have a smartsheet that lists students and what grade they are in (K, 1, 2, 3, etc.). I'm trying to do a sheet summary that will count students who are in grades K-5. How can I write a formula that will count the numbered cells but also the cells with the K in it.
I can get it to either count the cells with K or count the cells with 1, 2, 3, 4, or 5 - but I can't come up with a formual to do all.
Thanks!!
Answers
-
@TracyM How about just adding the two results?
=COUNTIF(Grade:Grade, ="K") + COUNTIF(Grade:Grade, <6)
seems to work for me.
dm
-
That worked!! I think I tried everything except +
thank you so much
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 202 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 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!