A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

formula for multiple criteria inc. date range



 
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2010, 08:55 AM posted to microsoft.public.excel.worksheet.functions
J.Scargill
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  
Old March 23rd, 2010, 09:16 AM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
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  
Old March 23rd, 2010, 09:27 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
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  
Old March 23rd, 2010, 10:04 AM posted to microsoft.public.excel.worksheet.functions
J.Scargill[_2_]
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  
Old March 23rd, 2010, 11:20 AM posted to microsoft.public.excel.worksheet.functions
J.Scargill[_2_]
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?



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:34 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.