How to count number of cells in a range
Hello, I have two questions about counting the number of cells in a range?
- How do I count all cells in a range, whether or not they have a value in them? COUNTM seems to exclude blanks.
- Can I do they same for a list that is not a range?
Thanks,
Suzanne
Best Answer
-
Hi @SuzanneH,
To add to @Nasir@EBC excellent suggestion.
Here's another option.
Try something like this.
=COUNTIF(Column:Column; OR(ISBLANK(@cell); NOT(ISBLANK(@cell))))
The same version but with the below changes for your and others convenience.
=COUNTIF(Column:Column, OR(ISBLANK(@cell), NOT(ISBLANK(@cell))))
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
I hope that helps!
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
Hello Suzanne
You can use the following formula to count all the cells whether they have any value or are blank:
=COUNTIF([Column Name]1:[Column Name]10, OR(LEN(@cell) = 0, LEN(@cell) > 0))
Please replace the column name and range according to your requirements.
Hope this helps!
Best
Nasir (Zealvert)
-
Hi @SuzanneH,
To add to @Nasir@EBC excellent suggestion.
Here's another option.
Try something like this.
=COUNTIF(Column:Column; OR(ISBLANK(@cell); NOT(ISBLANK(@cell))))
The same version but with the below changes for your and others convenience.
=COUNTIF(Column:Column, OR(ISBLANK(@cell), NOT(ISBLANK(@cell))))
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
I hope that helps!
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thank you!
-
@SuzanneH Happy to help!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!