Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default How many males and how many females

Hi

I'm working on attendance record and I'm having a problem with a formula.
I'll try to explain this clearly.

Column C is the gender column. Each cell in this column either says "male"
of "female." Column L is the attendance record column. Each cell in this
column has a numeric value.

I would like to create a formula that tells me how many males have attended
the event. I don't want the formula to include males who have "0" in their
attendance record cell.

I hope this makes sense!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default How many males and how many females

Try something like this:

=SUMPRODUCT((C2:C100="MALE")*(L2:L10000))

Change range references to suit your situation.

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Adam" wrote in message
...
Hi

I'm working on attendance record and I'm having a problem with a formula.
I'll try to explain this clearly.

Column C is the gender column. Each cell in this column either says "male"
of "female." Column L is the attendance record column. Each cell in this
column has a numeric value.

I would like to create a formula that tells me how many males have
attended
the event. I don't want the formula to include males who have "0" in their
attendance record cell.

I hope this makes sense!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default How many males and how many females

To Get males total
=SUMPRODUCT(--(C1:C20="Male"),--(L1:L200))
Assuming Gender are in Range C1:C20 and Attendence is in L1:L20

To Get Females total
=SUMPRODUCT(--(C1:C20="Female"),--(L1:L200))



"Adam" wrote:

Hi

I'm working on attendance record and I'm having a problem with a formula.
I'll try to explain this clearly.

Column C is the gender column. Each cell in this column either says "male"
of "female." Column L is the attendance record column. Each cell in this
column has a numeric value.

I would like to create a formula that tells me how many males have attended
the event. I don't want the formula to include males who have "0" in their
attendance record cell.

I hope this makes sense!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default How many males and how many females

Great thanks!

"claude jerry" wrote:

To Get males total
=SUMPRODUCT(--(C1:C20="Male"),--(L1:L200))
Assuming Gender are in Range C1:C20 and Attendence is in L1:L20

To Get Females total
=SUMPRODUCT(--(C1:C20="Female"),--(L1:L200))



"Adam" wrote:

Hi

I'm working on attendance record and I'm having a problem with a formula.
I'll try to explain this clearly.

Column C is the gender column. Each cell in this column either says "male"
of "female." Column L is the attendance record column. Each cell in this
column has a numeric value.

I would like to create a formula that tells me how many males have attended
the event. I don't want the formula to include males who have "0" in their
attendance record cell.

I hope this makes sense!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default How many males and how many females

Great thanks!

"Ron Coderre" wrote:

Try something like this:

=SUMPRODUCT((C2:C100="MALE")*(L2:L10000))

Change range references to suit your situation.

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Adam" wrote in message
...
Hi

I'm working on attendance record and I'm having a problem with a formula.
I'll try to explain this clearly.

Column C is the gender column. Each cell in this column either says "male"
of "female." Column L is the attendance record column. Each cell in this
column has a numeric value.

I would like to create a formula that tells me how many males have
attended
the event. I don't want the formula to include males who have "0" in their
attendance record cell.

I hope this makes sense!




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
At least two males Matti Koski Excel Worksheet Functions 1 August 2nd 07 08:54 AM
Downloaded "Fitness Chart for Males" need it in metric? Bewildered Excel Discussion (Misc queries) 1 January 12th 06 09:45 AM
Count number of instances in sheet e.g. how many males/females MJ Excel Worksheet Functions 1 March 26th 05 08:11 PM


All times are GMT +1. The time now is 11:52 AM.

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"