Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Excel 2003 - Count dates

Hi
I have column a in which various dates are entered. What I'd like to do is
count the number of times there is any date that falls within a given week.
e.g. say the week consists of start date Monday 12 Jan 2008 and ends Friday
16 Jan 2008 then I would like to do is calc how many times in column a there
is a date that falls into that week.
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Excel 2003 - Count dates

Try this:

=COUNTIF(A:A,"<="&DATE(2008,1,16))-COUNTIF(A:A,"<"&DATE(2008,1,12))

It would be better to put your dates in other cells (eg C1, D1), then
you could have:

=COUNTIF(A:A,"<="&D1)-COUNTIF(A:A,"<"&C1)

where D1 is the later date.

Hope this helps.

Pete

On Jan 28, 4:49*pm, Arceedee
wrote:
Hi
I have column a in which various dates are entered. *What I'd like to do is
count the number of times there is any date that falls within a given week. *
e.g. say the week consists of start date Monday 12 Jan 2008 and ends Friday
16 Jan 2008 then I would like to do is calc how many times in column a there
is a date that falls into that week.
Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Excel 2003 - Count dates

Spot on Pete, cheers

"Pete_UK" wrote:

Try this:

=COUNTIF(A:A,"<="&DATE(2008,1,16))-COUNTIF(A:A,"<"&DATE(2008,1,12))

It would be better to put your dates in other cells (eg C1, D1), then
you could have:

=COUNTIF(A:A,"<="&D1)-COUNTIF(A:A,"<"&C1)

where D1 is the later date.

Hope this helps.

Pete

On Jan 28, 4:49 pm, Arceedee
wrote:
Hi
I have column a in which various dates are entered. What I'd like to do is
count the number of times there is any date that falls within a given week.
e.g. say the week consists of start date Monday 12 Jan 2008 and ends Friday
16 Jan 2008 then I would like to do is calc how many times in column a there
is a date that falls into that week.
Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Excel 2003 - Count dates

You're welcome - thanks for feeding back.

Pete

On Jan 28, 5:51*pm, Arceedee
wrote:
Spot on Pete, cheers


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
Help with dates!! Excel 2003 Susan Excel Discussion (Misc queries) 3 August 21st 08 04:54 PM
Count widgets between two dates - Excel 2003 ROC Excel Discussion (Misc queries) 2 March 28th 07 08:06 AM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
count number of years 2003 in a range of dates Stan Altshuller Excel Worksheet Functions 2 May 3rd 05 07:15 PM
count dates in excel skchth Excel Discussion (Misc queries) 6 March 3rd 05 12:35 AM


All times are GMT +1. The time now is 02:15 AM.

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"