PC Review


Reply
Thread Tools Rate Thread

Counting different value's

 
 
digitallifeform
Guest
Posts: n/a
 
      15th Oct 2003
Hi there.

I have got a column of which each cel contains one of three answers.
They are either 'O' 'I' or 'P'.

In another cell i need a forumla that will count how many 'O's, 'I's
etc there are.

How do i do this please.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
David Hager
Guest
Posts: n/a
 
      15th Oct 2003
Use the COUNTIF function.

--
David Hager
Excel MVP

"digitallifeform" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Hi there.
>
> I have got a column of which each cel contains one of three answers.
> They are either 'O' 'I' or 'P'.
>
> In another cell i need a forumla that will count how many 'O's, 'I's
> etc there are.
>
> How do i do this please.
>
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~ View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      15th Oct 2003
=SUMPRODUCT((A1:A20={"O","T","P"})+0)

for all

=COUNTIF(A:A20,"O")

for Os only

replace O with T or P to get the individual counts for each of them

--

Regards,

Peo Sjoblom


"digitallifeform" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Hi there.
>
> I have got a column of which each cel contains one of three answers.
> They are either 'O' 'I' or 'P'.
>
> In another cell i need a forumla that will count how many 'O's, 'I's
> etc there are.
>
> How do i do this please.
>
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~ View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Earl Kiosterud
Guest
Posts: n/a
 
      15th Oct 2003
Digital life form?

Try

=COUNTIF(A2:A8,"p")

It's not case sensitive. Make another for the I's, etc. Or make a pivot
table, which will group all the like things it finds and give you a sum,
count, etc. for each group.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"digitallifeform" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Hi there.
>
> I have got a column of which each cel contains one of three answers.
> They are either 'O' 'I' or 'P'.
>
> In another cell i need a forumla that will count how many 'O's, 'I's
> etc there are.
>
> How do i do this please.
>
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~ View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
digitallifeform
Guest
Posts: n/a
 
      15th Oct 2003
Thanks v much guys

Yeah i use digitallifeform, and have done for years : )

If you ever play an online game, im on there somewhere!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
Reply With Quote
 
Alan Beban
Guest
Posts: n/a
 
      15th Oct 2003
=COUNTIF(A1:A20,{"O","I","P"}), array entered into a three-column row,
will return the number of o's, i's, and p's, respectively, to the three
cells; it is not case sensitive.

=SUM(COUNTIF(A1:A20,{"O","I","P"}) will return the aggregate number of
o's, i's, and p's, as will =COUNTA(A1:A20).

Alan Beban

digitallifeform wrote:
> Hi there.
>
> I have got a column of which each cel contains one of three answers.
> They are either 'O' 'I' or 'P'.
>
> In another cell i need a forumla that will count how many 'O's, 'I's
> etc there are.
>
> How do i do this please.
>
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~ View and post usenet messages directly from http://www.ExcelForum.com/
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting function but not double counting duplicates =?Utf-8?B?SlJE?= Microsoft Excel Worksheet Functions 2 7th Nov 2007 06:43 PM
Counting rows, then counting values. Michael via OfficeKB.com Microsoft Excel Misc 7 4th Aug 2005 10:57 PM
Counting Rows Then Counting Values in Columns Michael via OfficeKB.com Microsoft Excel Programming 1 1st Jun 2005 04:10 PM
Counting names in a column but counting duplicate names once =?Utf-8?B?VEJvZQ==?= Microsoft Excel Misc 9 11th May 2005 11:24 PM
12,000 and counting - dead, 1 Million and counting - homeless David Candy Windows XP General 34 1st Jan 2005 10:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:09 PM.