+ Reply to Thread
Results 1 to 5 of 5

Thread: calculating percentages

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2008
    Posts
    7

    calculating percentages

    Hi,

    I have data structured like below, but with thousands of rows, and would like to find percentages of females (from column B) in each group (column A).

    Any ideas on how to go about this?

    Col A Col B
    1 M
    1 F
    1 F
    2 M
    2 M
    2 M
    3 F
    4 M
    4 M
    4 M

    thanks!
    Last edited by zuwanda; 02-07-2012 at 09:52 PM.

  2. #2
    Valued Forum Contributor JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    Japan
    MS-Off Ver
    Excel 2010
    Posts
    779

    Re: calculating percentages

    I am not sure if I understand correctly, but how about this?

    =COUNTIF(B:B,"m")/COUNTA(B:B)
    If you are happy with the answer, please click the Star icon in the below left hand corner.

    Good sites to start learning.

    snb's VBA Help Files
    Jerry Beaucaires Excel Assistant
    J & R Excel Consultancy Services

    How to post code correctly: Correct Code Posting

  3. #3
    Valued Forum Contributor
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    455

    Re: calculating percentages

    Give a try:

    Untitled.jpg
    Click the star icon in left-corner of my post if you find my post userful!

    Quang PT
    quangphanidico@yahoo.com
    PM me: Y!M: quangphanidico

  4. #4
    Registered User
    Join Date
    02-02-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2008
    Posts
    7

    Re: calculating percentages

    JapanDave, I don't think I explained myself well, but have it figured out now. Thanks for all the helpful links, and I'll try to be more clear in future posts!

  5. #5
    Registered User
    Join Date
    02-02-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2008
    Posts
    7

    Re: calculating percentages

    Thanks a lot bebo, that worked. Great to learn about COUNTIFS!

    best

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0