Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default formula for multiple criteria inc. date range

Hello,
I am new to this site and need help with a problem I am having on Excel.
I am trying to count the number of cells in column Q that have a "Y" in it,
provided that the date in column A is between 27/02/10 and 06/03/10. Does
this make sense??
I have tried;
=SUMPRODUCT((A14:A1000<="06/03/10")*(A14:A1000="27/02/10")*(Q14:Q1000="Y"))
but this just returns a 0.
Can anybody help please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default formula for multiple criteria inc. date range

Hi,

One way

=SUMPRODUCT((A14:A1000<=DATE(2010,3,6))*(A14:A1000 =DATE(2010,2,27))*(Q14:Q1000="Y"))

But I suggest you keep the dates in a cell and refer to the cells

=SUMPRODUCT((A14:A1000<=A1)*(A14:A1000=A2)*(Q14:Q 1000="Y"))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"J.Scargill" wrote:

Hello,
I am new to this site and need help with a problem I am having on Excel.
I am trying to count the number of cells in column Q that have a "Y" in it,
provided that the date in column A is between 27/02/10 and 06/03/10. Does
this make sense??
I have tried;
=SUMPRODUCT((A14:A1000<="06/03/10")*(A14:A1000="27/02/10")*(Q14:Q1000="Y"))
but this just returns a 0.
Can anybody help please?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default formula for multiple criteria inc. date range

Try

=SUMPRODUCT(--(A14:A1000<=--"2010-03-06"),--(A14:A1000=--"2010-02-27"),--(Q14:Q1000="Y"))


--

HTH

Bob

"J.Scargill" wrote in message
...
Hello,
I am new to this site and need help with a problem I am having on Excel.
I am trying to count the number of cells in column Q that have a "Y" in
it,
provided that the date in column A is between 27/02/10 and 06/03/10. Does
this make sense??
I have tried;
=SUMPRODUCT((A14:A1000<="06/03/10")*(A14:A1000="27/02/10")*(Q14:Q1000="Y"))
but this just returns a 0.
Can anybody help please?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default formula for multiple criteria inc. date range

Mike, you are a legend! That works perfectly. Many, many, many thanks.

"Mike H" wrote:

Hi,

One way

=SUMPRODUCT((A14:A1000<=DATE(2010,3,6))*(A14:A1000 =DATE(2010,2,27))*(Q14:Q1000="Y"))

But I suggest you keep the dates in a cell and refer to the cells

=SUMPRODUCT((A14:A1000<=A1)*(A14:A1000=A2)*(Q14:Q 1000="Y"))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"J.Scargill" wrote:

Hello,
I am new to this site and need help with a problem I am having on Excel.
I am trying to count the number of cells in column Q that have a "Y" in it,
provided that the date in column A is between 27/02/10 and 06/03/10. Does
this make sense??
I have tried;
=SUMPRODUCT((A14:A1000<="06/03/10")*(A14:A1000="27/02/10")*(Q14:Q1000="Y"))
but this just returns a 0.
Can anybody help please?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default formula for multiple criteria inc. date range

Thanks Bob, works great!

"Bob Phillips" wrote:

Try

=SUMPRODUCT(--(A14:A1000<=--"2010-03-06"),--(A14:A1000=--"2010-02-27"),--(Q14:Q1000="Y"))


--

HTH

Bob

"J.Scargill" wrote in message
...
Hello,
I am new to this site and need help with a problem I am having on Excel.
I am trying to count the number of cells in column Q that have a "Y" in
it,
provided that the date in column A is between 27/02/10 and 06/03/10. Does
this make sense??
I have tried;
=SUMPRODUCT((A14:A1000<="06/03/10")*(A14:A1000="27/02/10")*(Q14:Q1000="Y"))
but this just returns a 0.
Can anybody help please?



.

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
multiple criteria date range Pat318 Excel Worksheet Functions 4 February 17th 10 02:47 PM
How can I define date range criteria in SUMIF formula? LisaR Excel Worksheet Functions 1 February 11th 10 08:13 AM
Countif with multiple criteria and date range Pedro Dias Ferreira Excel Worksheet Functions 12 November 13th 09 01:24 PM
How do I put a date range in the criteria of a countif formula? hlpmelrn Excel Discussion (Misc queries) 3 November 23rd 06 03:12 AM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM


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