[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
smokeyone
General User

Joined: 10 Oct 2005
Posts: 43

 Posted: Tue May 04, 2010 10:36 pm    Post subject: count function I am hoping someone will be kind enough to check my formula to see where I have gone wrong. I am trying to add up the number of times "0" zero appears in column E. This is what I have tried =COUNTIF(E8:E4000,"0") Thanks very much
TessaES

Joined: 17 Feb 2007
Posts: 228
Location: Solna

Posted: Tue May 04, 2010 10:43 pm    Post subject:

You are now counting how many times the text-string "0" occurs. And you should use the semicolon between arguments:

 Code: =COUNTIF(E8:E4000;0)
smokeyone
General User

Joined: 10 Oct 2005
Posts: 43

 Posted: Tue May 04, 2010 11:33 pm    Post subject: Thanks very much for the help. Also, although not essential is there an easy way to make the count only read a single "0" in a cell rather than counting for instance 100 in a cell as two "O's" in the total. Thanks PS Actually the total number of cells which are not a single "0" would also give me the information.......
TessaES

Joined: 17 Feb 2007
Posts: 228
Location: Solna

 Posted: Tue May 04, 2010 11:58 pm    Post subject: Are you sure that is what it is doing? Here it only counts the cells that are 0, not those that are 10 or 100. If you change one of the cells that contain 0 to 10, does the count change? PS After looking at it again, I found that it actually does not matter if you use "0" or 0 in the formula, it was just the comma that was your problem
smokeyone
General User

Joined: 10 Oct 2005
Posts: 43

 Posted: Wed May 05, 2010 12:47 am    Post subject: Just double checked - COUNT versus COUNTIF makes a big difference... It is only counting a single "0" in a cell.... Thanks again
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum