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

Hi
I need to count the number of entries in column I based on the date they
were entered - this appears in Column C

I only want the number of entries in Column I which contain the text
"Awaiting inspection" using the criteria from column C the date of entry if
it was before 31 Jan 2009

Any advice would be appreciated
Cheers
Ajay


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Countif Question

Hi,

Try this

=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

Mike

"Ajay" wrote:

Hi
I need to count the number of entries in column I based on the date they
were entered - this appears in Column C

I only want the number of entries in Column I which contain the text
"Awaiting inspection" using the criteria from column C the date of entry if
it was before 31 Jan 2009

Any advice would be appreciated
Cheers
Ajay


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

Excellent just what I needed many thanks Mike H.

secondary question could I adapt the formula 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.

Cheers
ajay

"Mike H" wrote:

Hi,

Try this

=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

Mike

"Ajay" wrote:

Hi
I need to count the number of entries in column I based on the date they
were entered - this appears in Column C

I only want the number of entries in Column I which contain the text
"Awaiting inspection" using the criteria from column C the date of entry if
it was before 31 Jan 2009

Any advice would be appreciated
Cheers
Ajay


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Countif Question

Hi,

Glad I could help and yes you can extend the formula like this

=SUMPRODUCT((C1:C36DATE(2009,1,31))*(C1:C36<DATE( 2009,2,28))*(I1:I36="Awaiting inspection"))

because it's now getting a bit long consider this

=SUMPRODUCT((C1:C36A1)*(C1:C36<A2)*(I1:I36=A3))

Which uses cell ref's for the dates and searchstring

Mike



"Ajay" wrote:

Excellent just what I needed many thanks Mike H.

secondary question could I adapt the formula 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.

Cheers
ajay

"Mike H" wrote:

Hi,

Try this

=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

Mike

"Ajay" wrote:

Hi
I need to count the number of entries in column I based on the date they
were entered - this appears in Column C

I only want the number of entries in Column I which contain the text
"Awaiting inspection" using the criteria from column C the date of entry if
it was before 31 Jan 2009

Any advice would be appreciated
Cheers
Ajay


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

Exxcellent again Mike H
Many thanx

"Mike H" wrote:

Hi,

Glad I could help and yes you can extend the formula like this

=SUMPRODUCT((C1:C36DATE(2009,1,31))*(C1:C36<DATE( 2009,2,28))*(I1:I36="Awaiting inspection"))

because it's now getting a bit long consider this

=SUMPRODUCT((C1:C36A1)*(C1:C36<A2)*(I1:I36=A3))

Which uses cell ref's for the dates and searchstring

Mike



"Ajay" wrote:

Excellent just what I needed many thanks Mike H.

secondary question could I adapt the formula 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.

Cheers
ajay

"Mike H" wrote:

Hi,

Try this

=SUMPRODUCT((C1:C36<DATE(2009,1,31))*(I1:I36="Awai ting inspection"))

Mike

"Ajay" wrote:

Hi
I need to count the number of entries in column I based on the date they
were entered - this appears in Column C

I only want the number of entries in Column I which contain the text
"Awaiting inspection" using the criteria from column C the date of entry if
it was before 31 Jan 2009

Any advice would be appreciated
Cheers
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
countif question confused Excel Discussion (Misc queries) 3 September 21st 06 03:27 AM
COUNTIF Question Phillycheese5 Excel Worksheet Functions 4 February 2nd 06 06:48 AM
Countif Question pfeff Excel Worksheet Functions 5 December 23rd 05 08:07 PM
CountIf Question Jane Excel Worksheet Functions 10 September 28th 05 07:59 PM
countif question floridasurfn Excel Worksheet Functions 3 March 14th 05 02:03 AM


All times are GMT +1. The time now is 04:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"