Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dk dk is offline
external usenet poster
 
Posts: 129
Default Excel - count the number of records between two specific dates.

I need to count the number of records between two specific dates. Using
excel 2007. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Excel - count the number of records between two specific dates.

=SUMPRODUCT(--(A:A<=--"2008-01-01"),--(A:A=--"2008-03-31"))

or if the dates are in other cells

=SUMPRODUCT(--(A:A<=M1),--(A:A=M2))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DK" wrote in message
...
I need to count the number of records between two specific dates. Using
excel 2007. Can anyone help?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dk dk is offline
external usenet poster
 
Posts: 129
Default Excel - count the number of records between two specific dates

Hi Bob

I'm obviously doing something wrong as it still doesn't work.

All data on one workhseet. Dates to be searched are in column K.
Dates from and to are in two seperate cells in different columns.

using the following formula
=SUMPRODUCT(--(K2:K500<=DD401), --(K2:K500=DE401)) - typed exactly as shown
produces the result 0 but there is data that should have been counted. Any
further advice?



"Bob Phillips" wrote:

=SUMPRODUCT(--(A:A<=--"2008-01-01"),--(A:A=--"2008-03-31"))

or if the dates are in other cells

=SUMPRODUCT(--(A:A<=M1),--(A:A=M2))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DK" wrote in message
...
I need to count the number of records between two specific dates. Using
excel 2007. Can anyone help?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Excel - count the number of records between two specific dates

I got my <= and = the wrong way around, did you also?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DK" wrote in message
...
Hi Bob

I'm obviously doing something wrong as it still doesn't work.

All data on one workhseet. Dates to be searched are in column K.
Dates from and to are in two seperate cells in different columns.

using the following formula
=SUMPRODUCT(--(K2:K500<=DD401), --(K2:K500=DE401)) - typed exactly as
shown
produces the result 0 but there is data that should have been counted.
Any
further advice?



"Bob Phillips" wrote:

=SUMPRODUCT(--(A:A<=--"2008-01-01"),--(A:A=--"2008-03-31"))

or if the dates are in other cells

=SUMPRODUCT(--(A:A<=M1),--(A:A=M2))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"DK" wrote in message
...
I need to count the number of records between two specific dates. Using
excel 2007. Can anyone help?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dk dk is offline
external usenet poster
 
Posts: 129
Default Excel - count the number of records between two specific dates

Thanks Bob - works perfectly. Much appreciated DK

"Bob Phillips" wrote:

I got my <= and = the wrong way around, did you also?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DK" wrote in message
...
Hi Bob

I'm obviously doing something wrong as it still doesn't work.

All data on one workhseet. Dates to be searched are in column K.
Dates from and to are in two seperate cells in different columns.

using the following formula
=SUMPRODUCT(--(K2:K500<=DD401), --(K2:K500=DE401)) - typed exactly as
shown
produces the result 0 but there is data that should have been counted.
Any
further advice?



"Bob Phillips" wrote:

=SUMPRODUCT(--(A:A<=--"2008-01-01"),--(A:A=--"2008-03-31"))

or if the dates are in other cells

=SUMPRODUCT(--(A:A<=M1),--(A:A=M2))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"DK" wrote in message
...
I need to count the number of records between two specific dates. Using
excel 2007. Can anyone help?








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
Count certain records between dates Heliocracy Excel Discussion (Misc queries) 7 February 15th 07 10:59 PM
Number of records between dates flow23 Excel Discussion (Misc queries) 1 May 11th 06 11:41 AM
Determining the number of specific days between two dates in Excel jon s Excel Worksheet Functions 9 March 21st 05 09:13 PM
Number of records by Month that meet a specific requirement Keith Brown Excel Worksheet Functions 1 February 5th 05 05:42 PM
count the no.of records between two dates Sachin Pawar Excel Worksheet Functions 2 October 30th 04 01:19 PM


All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"