+ Reply to Thread
Results 1 to 5 of 5

calculating percentages

Hybrid View

  1. #1
    Registered User
    Join Date
    02-03-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 10:52 PM.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: calculating percentages

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

    =COUNTIF(B:B,"m")/COUNTA(B:B)
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    02-03-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!

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,655

    Re: calculating percentages

    Give a try:

    Untitled.jpg
    Quang PT

  5. #5
    Registered User
    Join Date
    02-03-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.6.0 RC 1