Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sailingscotts
 
Posts: n/a
Default how would I count dates (not # of days) in cells that fall betwee.

Using excel, how would you count occurances of dates that fall between 2
dates? Thank you,
sailingscotts
  #2   Report Post  
Max
 
Posts: n/a
Default

One way ...

Assuming the dates are real dates, and in A1:A100 down:
try something like this in say, B1:

=SUMPRODUCT((A1:A100=DATE(2005,7,1))*(A1:A100<=DA TE(2005,7,15)))

which counts the # of cells within A1:A100 with dates
between 1st July 2005 and 15th July 2005 (inclusive)

Adapt to suit. Note that we can't use entire col references in SUMPRODUCT
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"sailingscotts" wrote in message
...
Using excel, how would you count occurances of dates that fall between 2
dates? Thank you,
sailingscotts



  #3   Report Post  
sailingscotts
 
Posts: n/a
Default

Thank you, Max!

"Max" wrote:

One way ...

Assuming the dates are real dates, and in A1:A100 down:
try something like this in say, B1:

=SUMPRODUCT((A1:A100=DATE(2005,7,1))*(A1:A100<=DA TE(2005,7,15)))

which counts the # of cells within A1:A100 with dates
between 1st July 2005 and 15th July 2005 (inclusive)

Adapt to suit. Note that we can't use entire col references in SUMPRODUCT
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"sailingscotts" wrote in message
...
Using excel, how would you count occurances of dates that fall between 2
dates? Thank you,
sailingscotts




  #4   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"sailingscotts" wrote in message
...
Thank you, Max!



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
formula to find and flag dates older than 30 days Will G. Excel Worksheet Functions 1 June 18th 05 12:13 AM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM
Count non-colored cells Ken G Excel Discussion (Misc queries) 3 January 2nd 05 12:42 PM
Subracting Dates to come up with the # of days between them KimberlyC Excel Worksheet Functions 8 December 20th 04 09:46 PM
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 PM


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