PC Review


Reply
Thread Tools Rate Thread

Count Text in Columns

 
 
Myjogli
Guest
Posts: n/a
 
      22nd Jun 2008
I've tried everything and can't seem to get this one.

I have a lot of different rows of text that I need counted a specific way.

I have written an M for a male and F for a female (there are other text
values as well).

I'd like to find some way to count all the M's and all the F's to see how
many Males and Females I have. Then I'd like to determine the % of Males to
Females. Anyway to do this all in one cell? Or is it easier to do it in
separate ones?

I also have number values that correspond to body parts, i.e. a 1 = Ankle, 2
= Knee, etc. So as I would like to count all the 1's to see how many Ankles
I have, and count all the 2's to see how many Knees I have, etc.

Thanks so much for your help, this one is really killin' me.
 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      22nd Jun 2008
Try these:

Count of males:

=COUNTIF(A1:A20,"M")

Count of females:

=COUNTIF(A1:A20,"F")

Percentage of males to females:

=COUNTIF(A1:A20,"M")/SUM(COUNTIF(A1:A20,{"M","F"}))

Format as Percentage

Count of body parts:

=COUNTIF(A1:A20,1)
=COUNTIF(A1:A20,2)

Adjust range to suit.

--
Biff
Microsoft Excel MVP


"Myjogli" <(E-Mail Removed)> wrote in message
news:671F060A-44D9-424C-A9FA-(E-Mail Removed)...
> I've tried everything and can't seem to get this one.
>
> I have a lot of different rows of text that I need counted a specific way.
>
> I have written an M for a male and F for a female (there are other text
> values as well).
>
> I'd like to find some way to count all the M's and all the F's to see how
> many Males and Females I have. Then I'd like to determine the % of Males
> to
> Females. Anyway to do this all in one cell? Or is it easier to do it in
> separate ones?
>
> I also have number values that correspond to body parts, i.e. a 1 = Ankle,
> 2
> = Knee, etc. So as I would like to count all the 1's to see how many
> Ankles
> I have, and count all the 2's to see how many Knees I have, etc.
>
> Thanks so much for your help, this one is really killin' me.



 
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
Count Unique text in 3 different columns Vitordf Microsoft Excel Worksheet Functions 9 6th Apr 2010 04:27 PM
how do I count rows with text values in several columns. scmopar Microsoft Excel Worksheet Functions 4 30th Jan 2009 02:20 AM
Count Text Across Multiple Columns LaTanya Microsoft Excel Worksheet Functions 8 13th Dec 2008 09:35 PM
Count matching text in two columns =?Utf-8?B?U3RldmVD?= Microsoft Excel Misc 9 4th Jul 2007 12:00 PM
Comparing text in several columns to identify and count enties that match the cr Ben Microsoft Excel Worksheet Functions 1 4th Dec 2003 03:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:35 PM.