#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Count?

I need to insert a function that will look at "m/f" (Male / Female) column
and "p/s" (Primary / Secondary) column and return me a count for the Male -
Primary; Male - Secondary; Female - Primary; Female - Secondary.

Any advise is greatly appreciated.

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Count?

=SUMPRODUCT(--(A2:A100)="M"),--(B2:B100="P"))

to give Male/Primary

Repeat as required to get M/S,F/P,F/S

HTH

"Traci B........" wrote:

I need to insert a function that will look at "m/f" (Male / Female) column
and "p/s" (Primary / Secondary) column and return me a count for the Male -
Primary; Male - Secondary; Female - Primary; Female - Secondary.

Any advise is greatly appreciated.

Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Count?

Hi Traci,

for the Male - Primary

=sumproduct(--(a2:a1000="Male")*(b2:b1000="Primary"))

change the text or use a cell reference to set the others

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Traci B........" escreveu:

I need to insert a function that will look at "m/f" (Male / Female) column
and "p/s" (Primary / Secondary) column and return me a count for the Male -
Primary; Male - Secondary; Female - Primary; Female - Secondary.

Any advise is greatly appreciated.

Thank you!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Count?

HTH,

It Works!!!

Thank you so very much! This new worksheet is going to help out
tremendously with monthly stats that I report! THANK YOU!!!

"Marcelo" wrote:

Hi Traci,

for the Male - Primary

=sumproduct(--(a2:a1000="Male")*(b2:b1000="Primary"))

change the text or use a cell reference to set the others

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Traci B........" escreveu:

I need to insert a function that will look at "m/f" (Male / Female) column
and "p/s" (Primary / Secondary) column and return me a count for the Male -
Primary; Male - Secondary; Female - Primary; Female - Secondary.

Any advise is greatly appreciated.

Thank you!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Count?

u r welcome

glad to help, thanks for the feedback
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Traci B........" escreveu:

HTH,

It Works!!!

Thank you so very much! This new worksheet is going to help out
tremendously with monthly stats that I report! THANK YOU!!!

"Marcelo" wrote:

Hi Traci,

for the Male - Primary

=sumproduct(--(a2:a1000="Male")*(b2:b1000="Primary"))

change the text or use a cell reference to set the others

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Traci B........" escreveu:

I need to insert a function that will look at "m/f" (Male / Female) column
and "p/s" (Primary / Secondary) column and return me a count for the Male -
Primary; Male - Secondary; Female - Primary; Female - Secondary.

Any advise is greatly appreciated.

Thank you!

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
Subtotals by count PineRest Excel Discussion (Misc queries) 1 May 10th 06 05:09 PM
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


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

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

About Us

"It's about Microsoft Excel"