Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Wenster
 
Posts: n/a
Default Count number of occurences in 1 column only if something in anothe

I want to do a count the number of occurences with in 1 column, only if there
is a specific number in another column.

Ex: A1:A6 contains male or female
B1:B6 contains that persons answer to Question1 (either a 1 for yes or a 2
for no)

I want to count the number of males that answered yes to Question1

Is this possible?
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUMPRODUCT(--($A$1:$A$6=$E2),--($B$1:$B$6=F$1))

where E2 houses a criterion value like Male and F1 1.

Wenster wrote:
I want to do a count the number of occurences with in 1 column, only if there
is a specific number in another column.

Ex: A1:A6 contains male or female
B1:B6 contains that persons answer to Question1 (either a 1 for yes or a 2
for no)

I want to count the number of males that answered yes to Question1

Is this possible?

  #3   Report Post  
Domenic
 
Posts: n/a
Default

Try the following...

=SUMPRODUCT(--(A1:A6="male"),--(B1:B6=1))

Hope this helps!

In article ,
"Wenster" wrote:

I want to do a count the number of occurences with in 1 column, only if there
is a specific number in another column.

Ex: A1:A6 contains male or female
B1:B6 contains that persons answer to Question1 (either a 1 for yes or a 2
for no)

I want to count the number of males that answered yes to Question1

Is this possible?

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
Count number of unique items in a column that contains duplicates Steembeem Excel Worksheet Functions 3 February 2nd 05 12:51 AM
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 PM
count number of occurences within a string Gabriel Excel Worksheet Functions 2 November 25th 04 04:17 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Count occurences between dates DJ Dusty Excel Worksheet Functions 3 November 11th 04 12:25 AM


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