Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculate number of WEEKENDS between two dates? | Excel Discussion (Misc queries) | |||
Calculate next number using dates? | Excel Worksheet Functions | |||
How do I calculate the number of years between 2 dates | Excel Discussion (Misc queries) | |||
Determine years betwen 2 dates | Excel Worksheet Functions | |||
HOW TO CALCULATE THE NUMBER OF YEARS BETWEEN TWO DATES | Excel Worksheet Functions |