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

Author Message
pedrosacosta
Newbie

Joined: 09 Feb 2011
Posts: 3

 Posted: Thu Feb 10, 2011 4:06 am    Post subject: Count the number of rows wit a letter Hi, I've a Column that contains several A's, B's, C's, D's, and F's. For example: Col1 contains several rows with a letter A. And also several rows with the letter B and several rows with the letter C, D, and F. I would like to count how many rows with A's I have. How can I do that in an automatically way? Thanks,
Villeroy
Super User

Joined: 04 Oct 2004
Posts: 10106
Location: Germany

 Posted: Thu Feb 10, 2011 4:18 am    Post subject: http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_COUNTIF_function_________________Rest in peace, oooforum.org Get help on https://forum.openoffice.org
JohnV

Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

 Posted: Thu Feb 10, 2011 6:21 am    Post subject: Assuming you may have A, A-, A+ and maybe even A++ you need to use a regular expression in your formula. Go to Tools > Options > Calc > Calculate and make sure regular expressions are enabled. =COUNTIF(A1:A10;"=A.*") if you just want to count plain As then don't use the ".*".
 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