Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional Formula, counting one criteria in a range based on ano

I have two columns of data, one being gender and the other being nationality.
I want to count how many British males there are, I can get the formulas to
work. I have tried many many variations of counta, countif, countifs, if etc
and none work.....where am I going wrong!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Conditional Formula, counting one criteria in a range based on ano

Hi,

Try this

=SUMPRODUCT((A1:A24="Male")*(B1:B24="British"))

Mike

"sarahlbdarling" wrote:

I have two columns of data, one being gender and the other being nationality.
I want to count how many British males there are, I can get the formulas to
work. I have tried many many variations of counta, countif, countifs, if etc
and none work.....where am I going wrong!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Conditional Formula, counting one criteria in a range based on ano

For XL2007:

=COUNTIFS(A1:A100,"Male",B1:B100,"British")


"sarahlbdarling" wrote:

I have two columns of data, one being gender and the other being nationality.
I want to count how many British males there are, I can get the formulas to
work. I have tried many many variations of counta, countif, countifs, if etc
and none work.....where am I going wrong!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Conditional Formula, counting one criteria in a range based on ano

Hi,

using reference cells:

=SUMPRODUCT(--(A1:A10=D1),--(B1:b10=D2))

Where D1 contains Male and D2 contains British.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"sarahlbdarling" wrote:

I have two columns of data, one being gender and the other being nationality.
I want to count how many British males there are, I can get the formulas to
work. I have tried many many variations of counta, countif, countifs, if etc
and none work.....where am I going wrong!

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
Counting dates based on certain criteria steve_sr2[_2_] Excel Worksheet Functions 5 March 1st 08 12:42 AM
Function - counting based on criteria Candace Excel Worksheet Functions 2 April 20th 06 07:41 PM
counting occurences based on two criteria nackington Excel Discussion (Misc queries) 6 April 20th 06 01:27 PM
conditional formula - based on 2 separate criteria andrewo-s Excel Worksheet Functions 10 March 14th 05 03:35 AM
counting based on criteria SOT Excel Worksheet Functions 0 March 9th 05 05:25 PM


All times are GMT +1. The time now is 10:45 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"