If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > hot to count the text values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-17-06, 02:39
faryal faryal is offline
Registered User
 
Join Date: Jul 2006
Posts: 2
hot to count the text values

i have problem using excel....
i have column in excel as given below...

a
a
b
c
a
a
b
c
b
a
a


how to sum up the number of times "a" appear in this column...answer should come 6 n 3 for "b" ans 2 for "c"
Reply With Quote
  #2 (permalink)  
Old 07-17-06, 03:42
mkggoh mkggoh is offline
Registered User
 
Join Date: Jun 2006
Posts: 103
Quote:
Originally Posted by faryal
i have problem using excel....
i have column in excel as given below...

a
a
b
c
a
a
b
c
b
a
a


how to sum up the number of times "a" appear in this column...answer should come 6 n 3 for "b" ans 2 for "c"
i attached a copy of the excel sheet which will count the number of occurance for a,b,c by a click of the button, put the input on column A in sheet1, as many row as u want, but must be continuous. Try it out, and u will get the picture.
Attached Files
File Type: zip count.zip (9.0 KB, 18 views)
Reply With Quote
  #3 (permalink)  
Old 07-17-06, 08:05
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
No need for code.

Put "a" (without quotes) in cell C1. Then in D1 put this formula:

=COUNTIF(A:A,"a")

Add "b" in C2, and "c" in C3, then copy the formula above down.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums

Last edited by shades; 07-17-06 at 09:55.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On