Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default 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
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
Calculate number of WEEKENDS between two dates? kmcg Excel Discussion (Misc queries) 4 April 22nd 23 02:09 AM
Calculate next number using dates? cyndiwise notsowise Excel Worksheet Functions 12 April 2nd 07 09:02 AM
How do I calculate the number of years between 2 dates Leisl Excel Discussion (Misc queries) 3 December 27th 06 01:16 PM
Determine years betwen 2 dates Darren Excel Worksheet Functions 2 May 3rd 06 05:26 PM
HOW TO CALCULATE THE NUMBER OF YEARS BETWEEN TWO DATES RAMON Excel Worksheet Functions 2 February 21st 05 01:27 AM


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