#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default countif

Hi

i have a worksheet with 2 columns of data. column a has dates and column b
has text (delivered or not delivered). i want to count the number of
instances of the word delivered between a certain criteria of dates. ie
01/01/09 and 31/01/09. The dates are in a start date and end date cell and
will change.

Appreciate any help.

Regards
ali
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default countif

Use this:

=SUMPRODUCT((A1:A100=start_date)*(A1:A100<=end_da te)*
(B1:B100="Delivered"))

This assumes your dates are inclusive - change = to and/or <= to <
if this is not the case.

Adjust your ranges to suit - I've assumed 100 rows of data.

Hope this helps.

Pete

On Aug 28, 3:41*pm, alistew wrote:
Hi

i have a worksheet with 2 columns of data. *column a has dates and column b
has text (delivered or not delivered). *i want to count the number of
instances of the word delivered between a certain criteria of dates. *ie
01/01/09 and 31/01/09. *The dates are in a start date and end date cell and
will change.

Appreciate any help.

Regards
ali


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default countif

Assuming your start date is in E1 and your end date in F1 and the data is in
cells A2 to B50 you could use:

=SUMPRODUCT((A2:A50=E1)*(A2:A50<=F1)*(B2:B50="Del ivered"))

Andrea Jones
www.allaboutclait.com


"alistew" wrote:

Hi

i have a worksheet with 2 columns of data. column a has dates and column b
has text (delivered or not delivered). i want to count the number of
instances of the word delivered between a certain criteria of dates. ie
01/01/09 and 31/01/09. The dates are in a start date and end date cell and
will change.

Appreciate any help.

Regards
ali

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default countif

thanks very much this works perfectly!

"Pete_UK" wrote:

Use this:

=SUMPRODUCT((A1:A100=start_date)*(A1:A100<=end_da te)*
(B1:B100="Delivered"))

This assumes your dates are inclusive - change = to and/or <= to <
if this is not the case.

Adjust your ranges to suit - I've assumed 100 rows of data.

Hope this helps.

Pete

On Aug 28, 3:41 pm, alistew wrote:
Hi

i have a worksheet with 2 columns of data. column a has dates and column b
has text (delivered or not delivered). i want to count the number of
instances of the word delivered between a certain criteria of dates. ie
01/01/09 and 31/01/09. The dates are in a start date and end date cell and
will change.

Appreciate any help.

Regards
ali



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default countif

thank you very much for your response

alison

"Andrea Jones" wrote:

Assuming your start date is in E1 and your end date in F1 and the data is in
cells A2 to B50 you could use:

=SUMPRODUCT((A2:A50=E1)*(A2:A50<=F1)*(B2:B50="Del ivered"))

Andrea Jones
www.allaboutclait.com


"alistew" wrote:

Hi

i have a worksheet with 2 columns of data. column a has dates and column b
has text (delivered or not delivered). i want to count the number of
instances of the word delivered between a certain criteria of dates. ie
01/01/09 and 31/01/09. The dates are in a start date and end date cell and
will change.

Appreciate any help.

Regards
ali



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default countif

Glad to hear it, Ali - thanks for feeding back.

Pete

On Aug 28, 4:25*pm, alistew wrote:
thanks very much this works perfectly!



"Pete_UK" wrote:
Use this:


=SUMPRODUCT((A1:A100=start_date)*(A1:A100<=end_da te)*
(B1:B100="Delivered"))


This assumes your dates are inclusive - change = to and/or <= to <
if this is not the case.


Adjust your ranges to suit - I've assumed 100 rows of data.


Hope this helps.


Pete


On Aug 28, 3:41 pm, alistew wrote:
Hi


i have a worksheet with 2 columns of data. *column a has dates and column b
has text (delivered or not delivered). *i want to count the number of
instances of the word delivered between a certain criteria of dates. *ie
01/01/09 and 31/01/09. *The dates are in a start date and end date cell and
will change.


Appreciate any help.


Regards
ali- Hide quoted text -


- Show quoted text -


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 vs. if???? Tflight Excel Worksheet Functions 6 January 26th 09 08:54 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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