Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Data Analysis Spreadsheet Basics Spreadsheet Functions & Shortcuts The COUNT Function

Kim B
Kim B
3,944 Points

Count Function - Google Sheet's... Help?

Hello, I'm looking at Google Sheet's Doc Editors help page (and sample spreadsheet) for the COUNT function, but I don't understand their second example formula: =COUNT(A2:A6, " ", -0.5)

What does the blank and -0.5 indicate? I get that the basic COUNT function counts only cells with numeric values, and COUNTA counts all values, text or numeric... but what are these additional values being added to the formula actually counting?

1 Answer

Megan Amendola
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Megan Amendola
Treehouse Teacher

With COUNT you can pass in multiple values for the formula to count. That example is also checking for cells with an empty string and cells with -.05 as values. Here are some more examples in case it helps.