#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default COUNTIF problem

Hi All

I have 2 columns: A has dates (appointment dates), B has integer numbers
(current waiting times in weeks).
I basically want to do:
COUNTIF A1:A20 30/06/2007 AND B1:B20 6
In other words, of those with appointments after 30 June 2007, how many have
already been waiting more than 6 weeks
?? Possible with one statement of the form:
=COUNTIF(AND(A1:A20,"30/06/2007",B1:B20,"6"))

Any help appreciated.

Phil


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default COUNTIF problem

Hi Phil

=SUMPRODUCT((A1:A20--"30/06/2007")*(B1:B206))

--
Regards

Roger Govier


"Phil C" wrote in message
...
Hi All

I have 2 columns: A has dates (appointment dates), B has integer
numbers (current waiting times in weeks).
I basically want to do:
COUNTIF A1:A20 30/06/2007 AND B1:B20 6
In other words, of those with appointments after 30 June 2007, how
many have already been waiting more than 6 weeks
?? Possible with one statement of the form:
=COUNTIF(AND(A1:A20,"30/06/2007",B1:B20,"6"))

Any help appreciated.

Phil



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default COUNTIF problem

=SUMPRODUCT(--(A1:A100DATE(2007,30,06)),--(B1:B1006))

[the "--" converts TRUE/False to 1/0]

"Phil C" wrote:

Hi All

I have 2 columns: A has dates (appointment dates), B has integer numbers
(current waiting times in weeks).
I basically want to do:
COUNTIF A1:A20 30/06/2007 AND B1:B20 6
In other words, of those with appointments after 30 June 2007, how many have
already been waiting more than 6 weeks
?? Possible with one statement of the form:
=COUNTIF(AND(A1:A20,"30/06/2007",B1:B20,"6"))

Any help appreciated.

Phil



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default COUNTIF problem

Hi Roger

That works! Many thanks.

Phil


"Roger Govier" wrote in message
...
Hi Phil

=SUMPRODUCT((A1:A20--"30/06/2007")*(B1:B206))

--
Regards

Roger Govier


"Phil C" wrote in message
...
Hi All

I have 2 columns: A has dates (appointment dates), B has integer numbers
(current waiting times in weeks).
I basically want to do:
COUNTIF A1:A20 30/06/2007 AND B1:B20 6
In other words, of those with appointments after 30 June 2007, how many
have already been waiting more than 6 weeks
?? Possible with one statement of the form:
=COUNTIF(AND(A1:A20,"30/06/2007",B1:B20,"6"))

Any help appreciated.

Phil





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default COUNTIF problem

Try this and put a date into cell C1 to compare
=SUMPRODUCT(--(A1:A100(C1)),--(B1:B1006))

"Phil C" wrote:

Hi All

I have 2 columns: A has dates (appointment dates), B has integer numbers
(current waiting times in weeks).
I basically want to do:
COUNTIF A1:A20 30/06/2007 AND B1:B20 6
In other words, of those with appointments after 30 June 2007, how many have
already been waiting more than 6 weeks
?? Possible with one statement of the form:
=COUNTIF(AND(A1:A20,"30/06/2007",B1:B20,"6"))

Any help appreciated.

Phil



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 problem with NOW() Spreadsheet Excel Worksheet Functions 21 June 26th 06 09:47 PM
Countif Problem Wally Steadman Excel Worksheet Functions 5 June 11th 06 11:58 PM
Countif Problem John Moore Excel Discussion (Misc queries) 5 November 27th 05 07:09 PM
countif problem WYN Excel Discussion (Misc queries) 4 April 25th 05 04:28 PM
problem with countif Cowtoon Excel Worksheet Functions 5 November 10th 04 11:04 PM


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