Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Toby0924
 
Posts: n/a
Default Count with multiple conditions

Hello all!

I have been reading the discussion groups and any website I can find on
countif functions with multiple criteria and I cannot seem to find the
answer. I have a spreadsheet that looks something like this:

A B
Dale 1/5/05
Susan 2/5/05
Dale 2/5/05
Dale 2/5/05
Mike 1/5/05

I want to have a formula that will count how many times the name "Dale" in
column A shows up with the date "2/5/05" in column B. I have a summary sheet
and the information is on sheet '2005'! With the example above, my answer
would be 2.

I have tried several formulas including:

=COUNT('2005'!G:G="*Dale*",'2005'!A:A="1/5/05")
=SUMPRODUCT(('2005'!G:G="*Dale*")*('2005'!A:A="2/5/05"))

What am I doing wrong? Thanks for all your help in advance.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Toby

you're on the right track with the SUMPRODUCT function - however, you can't
use full columns with this function - you need to define the range.

=SUMPRODUCT(--('2005'!G1:G17="Dale"),--('2005'!A1:A17=DATEVALUE("2/05/05")))

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

for details on the sumproduct function

Cheers
JulieD

"Toby0924" wrote in message
...
Hello all!

I have been reading the discussion groups and any website I can find on
countif functions with multiple criteria and I cannot seem to find the
answer. I have a spreadsheet that looks something like this:

A B
Dale 1/5/05
Susan 2/5/05
Dale 2/5/05
Dale 2/5/05
Mike 1/5/05

I want to have a formula that will count how many times the name "Dale" in
column A shows up with the date "2/5/05" in column B. I have a summary
sheet
and the information is on sheet '2005'! With the example above, my answer
would be 2.

I have tried several formulas including:

=COUNT('2005'!G:G="*Dale*",'2005'!A:A="1/5/05")
=SUMPRODUCT(('2005'!G:G="*Dale*")*('2005'!A:A="2/5/05"))

What am I doing wrong? Thanks for all your help in advance.



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

FWIW, I always suggest using a date check of

--"2005-05-05" (generically --"yyyy-mm-dd" )

to protect against not working in other countries

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JulieD" wrote in message
...
Hi Toby

you're on the right track with the SUMPRODUCT function - however, you

can't
use full columns with this function - you need to define the range.


=SUMPRODUCT(--('2005'!G1:G17="Dale"),--('2005'!A1:A17=DATEVALUE("2/05/05")))

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

for details on the sumproduct function

Cheers
JulieD

"Toby0924" wrote in message
...
Hello all!

I have been reading the discussion groups and any website I can find on
countif functions with multiple criteria and I cannot seem to find the
answer. I have a spreadsheet that looks something like this:

A B
Dale 1/5/05
Susan 2/5/05
Dale 2/5/05
Dale 2/5/05
Mike 1/5/05

I want to have a formula that will count how many times the name "Dale"

in
column A shows up with the date "2/5/05" in column B. I have a summary
sheet
and the information is on sheet '2005'! With the example above, my

answer
would be 2.

I have tried several formulas including:

=COUNT('2005'!G:G="*Dale*",'2005'!A:A="1/5/05")
=SUMPRODUCT(('2005'!G:G="*Dale*")*('2005'!A:A="2/5/05"))

What am I doing wrong? Thanks for all your help in advance.





  #4   Report Post  
Toby0924
 
Posts: n/a
Default

Thank you for your help!

"Bob Phillips" wrote:

FWIW, I always suggest using a date check of

--"2005-05-05" (generically --"yyyy-mm-dd" )

to protect against not working in other countries

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JulieD" wrote in message
...
Hi Toby

you're on the right track with the SUMPRODUCT function - however, you

can't
use full columns with this function - you need to define the range.


=SUMPRODUCT(--('2005'!G1:G17="Dale"),--('2005'!A1:A17=DATEVALUE("2/05/05")))

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

for details on the sumproduct function

Cheers
JulieD

"Toby0924" wrote in message
...
Hello all!

I have been reading the discussion groups and any website I can find on
countif functions with multiple criteria and I cannot seem to find the
answer. I have a spreadsheet that looks something like this:

A B
Dale 1/5/05
Susan 2/5/05
Dale 2/5/05
Dale 2/5/05
Mike 1/5/05

I want to have a formula that will count how many times the name "Dale"

in
column A shows up with the date "2/5/05" in column B. I have a summary
sheet
and the information is on sheet '2005'! With the example above, my

answer
would be 2.

I have tried several formulas including:

=COUNT('2005'!G:G="*Dale*",'2005'!A:A="1/5/05")
=SUMPRODUCT(('2005'!G:G="*Dale*")*('2005'!A:A="2/5/05"))

What am I doing wrong? Thanks for all your help in advance.






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
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM
count cells over multiple sheets Have three columns R,S,T Excel Worksheet Functions 4 December 18th 04 01:36 PM
Count If Formula for multiple conditions?? How To?? LPrain Excel Worksheet Functions 1 December 6th 04 09:18 PM
Count Based upon Multiple Conditions hkslater Excel Worksheet Functions 4 November 19th 04 04:43 AM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


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