![]() |
Calculate number of codes betwen dates
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 |
Calculate number of codes betwen dates
=SUMPRODUCT((A2:A7="KN")*(MONTH(B2:B7)=9))
-- David Biddulph "Danielah21" wrote in message ... 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 |
Calculate number of codes betwen dates
And with DH too:
=SUMPRODUCT(((G17:G22="KN")+(G17:G22="DH"))*(MONTH (H17:H22)=9)) "David Biddulph" wrote: =SUMPRODUCT((A2:A7="KN")*(MONTH(B2:B7)=9)) -- David Biddulph "Danielah21" wrote in message ... 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 |
Calculate number of codes betwen dates
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 "David Biddulph" wrote: =SUMPRODUCT((A2:A7="KN")*(MONTH(B2:B7)=9)) -- David Biddulph "Danielah21" wrote in message ... 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 |
Calculate number of codes betwen dates
Sorry, my fault, I was using USA date format Thank you, it did work
"David Biddulph" wrote: =SUMPRODUCT((A2:A7="KN")*(MONTH(B2:B7)=9)) -- David Biddulph "Danielah21" wrote in message ... 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 |
Calculate number of codes betwen dates
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 "Danielah21" wrote in message ... 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 |
All times are GMT +1. The time now is 01:50 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com