Calculate number of codes betwen dates

  • Thread starter Thread starter Danielah21
  • Start date Start date
D

Danielah21

I need to calculate amount of times certain code appears through my
worksheet between certain dates, e.g. how many times did DH (or KN) appear in
Sept)

KN 30/09/08
KN 10/10/08
DH 03/09/08
MG 03/09/08
PM 15/10/08
DH 14/09/08


I have tried dsum, sumif, array formulas, nothing seems to like dates
 
And with DH too:
=SUMPRODUCT(((G17:G22="KN")+(G17:G22="DH"))*(MONTH(H17:H22)=9))
 
Sorry, i tried something similar previously and also tried your suggestion,
still nothing. Almost doubt my excel is working as nearly all formulas are
coming with errors
 
Sorry, my fault, I was using USA date format Thank you, it did work
 
Hi,

You can also try this array formula (ctrl+Shift+Enter)

=COUNT(IF((MONTH(B11:B16)=9)*(A11:A16="KN"),1))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

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

Back
Top