#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting dates

I am trying to count the number of dates in a list that are between two other
dates.

I tried this but it just gave zero:
=COUNTIF(C11:C23,AND( ""& "G11","<"& "H11"))

Any advise?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Counting dates

=COUNTIF(C11:C23,""&G11) - COUNTIF(C11:C23,"<"&H11)

or

SUMPRODUCT(--(C11:C23G11), --(C11:C23<H11) )

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Boylie" wrote in message
...
I am trying to count the number of dates in a list that are between two
other
dates.

I tried this but it just gave zero:
=COUNTIF(C11:C23,AND( ""& "G11","<"& "H11"))

Any advise?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting dates

Nope, it doesn't work
=COUNTIF(C11:C23,""&G11) - COUNTIF(C11:C23,"<"&H11)


try like this:
=COUNTIF(C11:C23,""&G11) - COUNTIF(C11:C23,"="&H11)



"Bernard Liengme" wrote:

=COUNTIF(C11:C23,""&G11) - COUNTIF(C11:C23,"<"&H11)

or

SUMPRODUCT(--(C11:C23G11), --(C11:C23<H11) )

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Boylie" wrote in message
...
I am trying to count the number of dates in a list that are between two
other
dates.

I tried this but it just gave zero:
=COUNTIF(C11:C23,AND( ""& "G11","<"& "H11"))

Any advise?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Counting dates

Yes, that was foolish of me!
Thanks
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Teethless mama" wrote in message
...
Nope, it doesn't work
=COUNTIF(C11:C23,""&G11) - COUNTIF(C11:C23,"<"&H11)


try like this:
=COUNTIF(C11:C23,""&G11) - COUNTIF(C11:C23,"="&H11)



"Bernard Liengme" wrote:

=COUNTIF(C11:C23,""&G11) - COUNTIF(C11:C23,"<"&H11)

or

SUMPRODUCT(--(C11:C23G11), --(C11:C23<H11) )

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Boylie" wrote in message
...
I am trying to count the number of dates in a list that are between two
other
dates.

I tried this but it just gave zero:
=COUNTIF(C11:C23,AND( ""& "G11","<"& "H11"))

Any advise?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Counting dates

Hi,

In 2007:

=COUNTIFS(C11:C23, ""& G11,C11:C23,"<"& H11)

or in all versions another variation of the SUMPRODUCT:

=SUMPRODUCT((C11:C23G11)*(C11:C23<H11))

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Boylie" wrote:

I am trying to count the number of dates in a list that are between two other
dates.

I tried this but it just gave zero:
=COUNTIF(C11:C23,AND( ""& "G11","<"& "H11"))

Any advise?



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
Counting Dates Marie Excel Discussion (Misc queries) 3 June 4th 07 01:23 AM
counting occasions dates occur between 2 dates hoyt New Users to Excel 5 June 16th 06 08:11 AM
Counting dates, within a list of dates jrheinschm Excel Worksheet Functions 7 April 19th 06 06:13 PM
counting dates jeremy via OfficeKB.com New Users to Excel 1 August 12th 05 02:03 AM
Counting Dates Jerry Excel Worksheet Functions 3 March 11th 05 05:19 AM


All times are GMT +1. The time now is 07:13 AM.

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"