Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Follow up Question to Countif

Hi All

Secondary question could I adapt the formula
=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

to give a count using the criteria of between two dates.

Eg Count Awaiting Inspection entries if date in column B is between 1st feb
2009 and 15th Feb 2009.

Many thanx
Ajay
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Follow up Question to Countif

to give a count using the criteria of between two dates.

Usually, when someone says "between dates" what they really mean is all
dates between, *including* the boundary dates.

Use cells to hold the boundary dates and your other criteria:

A1 = lower boundary date = 2/1/2009
A2 = upper boundary date = 2/15/2009
A3 = Awaiting inspection

Then:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=B1),--(I1:I36=A3))


--
Biff
Microsoft Excel MVP


"Ajay" wrote in message
...
Hi All

Secondary question could I adapt the formula
=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

to give a count using the criteria of between two dates.

Eg Count Awaiting Inspection entries if date in column B is between 1st
feb
2009 and 15th Feb 2009.

Many thanx
Ajay



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Follow up Question to Countif

Ooops!

Typo:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=B1),--(I1:I36=A3))


Should be:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=A2),--(I1:I36=A3))


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
to give a count using the criteria of between two dates.


Usually, when someone says "between dates" what they really mean is all
dates between, *including* the boundary dates.

Use cells to hold the boundary dates and your other criteria:

A1 = lower boundary date = 2/1/2009
A2 = upper boundary date = 2/15/2009
A3 = Awaiting inspection

Then:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=B1),--(I1:I36=A3))


--
Biff
Microsoft Excel MVP


"Ajay" wrote in message
...
Hi All

Secondary question could I adapt the formula
=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

to give a count using the criteria of between two dates.

Eg Count Awaiting Inspection entries if date in column B is between 1st
feb
2009 and 15th Feb 2009.

Many thanx
Ajay





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Follow up Question to Countif

Excellent many thanks just what i needed

"T. Valko" wrote:

Ooops!

Typo:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=B1),--(I1:I36=A3))


Should be:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=A2),--(I1:I36=A3))


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
to give a count using the criteria of between two dates.


Usually, when someone says "between dates" what they really mean is all
dates between, *including* the boundary dates.

Use cells to hold the boundary dates and your other criteria:

A1 = lower boundary date = 2/1/2009
A2 = upper boundary date = 2/15/2009
A3 = Awaiting inspection

Then:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=B1),--(I1:I36=A3))


--
Biff
Microsoft Excel MVP


"Ajay" wrote in message
...
Hi All

Secondary question could I adapt the formula
=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

to give a count using the criteria of between two dates.

Eg Count Awaiting Inspection entries if date in column B is between 1st
feb
2009 and 15th Feb 2009.

Many thanx
Ajay






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Follow up Question to Countif

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ajay" wrote in message
...
Excellent many thanks just what i needed

"T. Valko" wrote:

Ooops!

Typo:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=B1),--(I1:I36=A3))


Should be:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=A2),--(I1:I36=A3))


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
to give a count using the criteria of between two dates.

Usually, when someone says "between dates" what they really mean is all
dates between, *including* the boundary dates.

Use cells to hold the boundary dates and your other criteria:

A1 = lower boundary date = 2/1/2009
A2 = upper boundary date = 2/15/2009
A3 = Awaiting inspection

Then:

=SUMPRODUCT(--(C1:C36=A1),--(C1:C36<=B1),--(I1:I36=A3))


--
Biff
Microsoft Excel MVP


"Ajay" wrote in message
...
Hi All

Secondary question could I adapt the formula
=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

to give a count using the criteria of between two dates.

Eg Count Awaiting Inspection entries if date in column B is between
1st
feb
2009 and 15th Feb 2009.

Many thanx
Ajay







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
A follow up Question Andrew Mackenzie Excel Discussion (Misc queries) 4 November 17th 08 02:50 PM
Follow-up AVERAGEIF question Ken[_3_] New Users to Excel 2 April 11th 08 05:45 PM
follow-up question regarding secondary Y-axes Patience Charts and Charting in Excel 1 November 11th 05 01:43 AM
Follow-Up (Clarification) to MIN question Odawg Excel Discussion (Misc queries) 4 October 20th 05 04:04 AM
Follow on from simple question 12/8/2004 Ajay Excel Discussion (Misc queries) 1 December 9th 04 11:55 PM


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