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