How do I count non-blanks in a column?
Hi - I have a column in a referenced sheet that I need to count cells that have data in them. I'm struggling with the countif formula, not sure what to put for not counting the blanks and only counting the cells with data.
Right now I have =countif({Lisa - test smartsheet Range 1}), …..and then I get stumped. The data is numerical with a dash so it can't just be excluding numbers or text. Thank you - sorry if this doesn't make sense.
Best Answer
-
Hey @Murz
There are two formulas that you can use
=count({Lisa - test smartsheet Range 1})
The formula returns the number of cells in that range that contain numeric values. If the range has cells with non-numeric data (like text), they will not be included in the count.If you want to count all non-blank cells, regardless of whether they contain numbers or text, you would use the
COUNTA
function instead ofCOUNT
.
The countif formula is good for instances where you have a different or specific set of criteriaMarcé Holzhauzen
Solution and Delivery Consultant with Award Winning Partner
Want to meet?Check my availabilitywww.prodactive.co.uk
If this helped, help me & the SSC by accepting it and reacting w/💡insightful, ⬆️ Vote Up, and/or ❤️Awesome.
Answers
-
Hey @Murz
There are two formulas that you can use
=count({Lisa - test smartsheet Range 1})
The formula returns the number of cells in that range that contain numeric values. If the range has cells with non-numeric data (like text), they will not be included in the count.If you want to count all non-blank cells, regardless of whether they contain numbers or text, you would use the
COUNTA
function instead ofCOUNT
.
The countif formula is good for instances where you have a different or specific set of criteriaMarcé Holzhauzen
Solution and Delivery Consultant with Award Winning Partner
Want to meet?Check my availabilitywww.prodactive.co.uk
If this helped, help me & the SSC by accepting it and reacting w/💡insightful, ⬆️ Vote Up, and/or ❤️Awesome.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!