Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Colchabay
 
Posts: n/a
Default Find Percent something in particular in a column.

I want to find the percent of lets say Males in a column of M/F that meet a
criteria in a seperate cell. For example Males that met a standard.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Find Percent something in particular in a column.

Let M or F be in A1:A100
Let B1:B100 have data for standard: a X means they met the standard (good
looking?)

The counts the males with X: =SUMPRODUCT(--(A1:A100="M"),--(B1:B100="X")
That is two negative signs in front of opening parentheses. See
http://www.xldynamic.com/source/xld.SUMPRODUCT.html for details

You want %of males? Divide by number of males
=SUMPRODUCT(--(A1:A100="M"),--(B1:B100="X") / COUNTIF(A1:A100,"M")
Format the result as percent.

Of % of all in A?
=SUMPRODUCT(--(A1:A100="M"),--(B1:B100="X") / COUNTA(A1:A100)
{yes I know the count is 100 but you might add some more by inserting
records}


You cannot use A:A in SUMPRODUCT
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Colchabay" wrote in message
...
I want to find the percent of lets say Males in a column of M/F that meet a
criteria in a seperate cell. For example Males that met a standard.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 12:28 AM
Find a "date" in a column of dates in Excel 2000 JR Hester Excel Worksheet Functions 3 November 1st 05 09:17 PM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Find a empty cell in next column Michael Excel Discussion (Misc queries) 3 June 15th 05 02:18 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM


All times are GMT +1. The time now is 01:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"