count date occurances in range of dates...

G

Guest

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
 
B

Bob Phillips

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

--

HTH

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top