OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Count the number of rows wit a letter

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
pedrosacosta
Newbie
Newbie


Joined: 09 Feb 2011
Posts: 3

PostPosted: Thu Feb 10, 2011 4:06 am    Post subject: Count the number of rows wit a letter Reply with quote

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,
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Thu Feb 10, 2011 4:18 am    Post subject: Reply with quote

http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_COUNTIF_function
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


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

PostPosted: Thu Feb 10, 2011 6:21 am    Post subject: Reply with quote

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 ".*".
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group