Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alex
 
Posts: n/a
Default count date occurances in range of dates...

Hi

I am stuck trying to come up with a formula to count the number of times
dates occur within a range of dates.
What I have is:
col A has a range of dates, say A1:A100
col b with another set of dates B1:B7
What I need to do is return the number of times any of the individual dates
in the B1:B7 range occur in A1:A100.
e.g
A B
10 Feb 05 26 Mar 05
15 Feb 05 29 Apr 05
26 Mar 05 10 Feb 05
29 Apr 05
06 May 05
11 Jan 05
18 Dec 05

The answer I'm looking for here would be 3. Each date in col B occurs once
in col A.

Getting very frustrated with this and can't seem to find an answer for it!!
Many thanks in advance

Alex

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(COUNTIF(A1:A7,B1:B3))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Alex" wrote in message
...
Hi

I am stuck trying to come up with a formula to count the number of times
dates occur within a range of dates.
What I have is:
col A has a range of dates, say A1:A100
col b with another set of dates B1:B7
What I need to do is return the number of times any of the individual

dates
in the B1:B7 range occur in A1:A100.
e.g
A B
10 Feb 05 26 Mar 05
15 Feb 05 29 Apr 05
26 Mar 05 10 Feb 05
29 Apr 05
06 May 05
11 Jan 05
18 Dec 05

The answer I'm looking for here would be 3. Each date in col B occurs once
in col A.

Getting very frustrated with this and can't seem to find an answer for

it!!
Many thanks in advance

Alex



  #3   Report Post  
Alex
 
Posts: n/a
Default

Thanks for the speedy answer. Works great.

Cheers,
Alex.


"Bob Phillips" wrote:

=SUMPRODUCT(COUNTIF(A1:A7,B1:B3))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Alex" wrote in message
...
Hi

I am stuck trying to come up with a formula to count the number of times
dates occur within a range of dates.
What I have is:
col A has a range of dates, say A1:A100
col b with another set of dates B1:B7
What I need to do is return the number of times any of the individual

dates
in the B1:B7 range occur in A1:A100.
e.g
A B
10 Feb 05 26 Mar 05
15 Feb 05 29 Apr 05
26 Mar 05 10 Feb 05
29 Apr 05
06 May 05
11 Jan 05
18 Dec 05

The answer I'm looking for here would be 3. Each date in col B occurs once
in col A.

Getting very frustrated with this and can't seem to find an answer for

it!!
Many thanks in advance

Alex




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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
How do I get an IF statement to pull a date range?? Brooke Medvecky Excel Worksheet Functions 9 April 19th 06 08:48 PM
Compare dates (one cell not in date format) craigcsb Excel Discussion (Misc queries) 5 June 28th 05 05:07 PM
adding occurrences for date range Mike Excel Discussion (Misc queries) 0 April 11th 05 05:24 PM
Count the number of dates in a range that are earlier than today. DeborahS Excel Worksheet Functions 1 March 9th 05 01:54 AM


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