Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 216
Default Help - Function Count, but on dates not numbers

Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But can't
figure out how to do the formula where the cells/columns have DATEs as it's
contents.

Want the formula to - count the number of records that have dates that are
greater then "specific date" and less then "specific date". And return the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help - Function Count, but on dates not numbers

Try one of these:

When you say:

greater then "specific date" and less then "specific date".


I'm assuming you do not want to include the start date and the end date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But can't
figure out how to do the formula where the cells/columns have DATEs as
it's
contents.

Want the formula to - count the number of records that have dates that are
greater then "specific date" and less then "specific date". And return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Help - Function Count, but on dates not numbers

On Wed, 17 Oct 2007 13:13:00 -0700, Nadine
wrote:

Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But can't
figure out how to do the formula where the cells/columns have DATEs as it's
contents.

Want the formula to - count the number of records that have dates that are
greater then "specific date" and less then "specific date". And return the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine


=countif(rng,"="&StartDt) - countif(rng,""&EndDt)


--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Help - Function Count, but on dates not numbers

Hi,

Wondering if you might be able to help me with a similar question?

I've got a column (D) which has dates that a request was approved.

I want to calculate how many requests were approved per month over a two
year period.

Is there a away to do this other than using "less than" and "greater than"
for each month?

Thanks!




"T. Valko" wrote:

Try one of these:

When you say:

greater then "specific date" and less then "specific date".


I'm assuming you do not want to include the start date and the end date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But can't
figure out how to do the formula where the cells/columns have DATEs as
it's
contents.

Want the formula to - count the number of records that have dates that are
greater then "specific date" and less then "specific date". And return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Help - Function Count, but on dates not numbers

On Thu, 18 Oct 2007 07:46:04 -0700, KellyF
wrote:

Hi,

Wondering if you might be able to help me with a similar question?

I've got a column (D) which has dates that a request was approved.

I want to calculate how many requests were approved per month over a two
year period.

Is there a away to do this other than using "less than" and "greater than"
for each month?

Thanks!


You can probably do that with a Pivot Table
--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 216
Default Help - Function Count, but on dates not numbers

tried the formula:
=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))


But the results provide an incorrect count.

We have a column with multiple dates over 3 years. But want to only count
how many records there are that are between the dates 01-APR-07 and 31-MAR-08.
If count manually should get 41 records, but calculation gives results of
37.

Thanks

"T. Valko" wrote:

Try one of these:

When you say:

greater then "specific date" and less then "specific date".


I'm assuming you do not want to include the start date and the end date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But can't
figure out how to do the formula where the cells/columns have DATEs as
it's
contents.

Want the formula to - count the number of records that have dates that are
greater then "specific date" and less then "specific date". And return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Help - Function Count, but on dates not numbers

Try

=COUNTIF(A1:A20,"="&DATE(2007,4,1))-COUNTIF(A1:A20,""&DATE(2008,3,31))


--


Regards,


Peo Sjoblom


"Nadine" wrote in message
...
tried the formula:
=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))


But the results provide an incorrect count.

We have a column with multiple dates over 3 years. But want to only count
how many records there are that are between the dates 01-APR-07 and
31-MAR-08.
If count manually should get 41 records, but calculation gives results of
37.

Thanks

"T. Valko" wrote:

Try one of these:

When you say:

greater then "specific date" and less then "specific date".


I'm assuming you do not want to include the start date and the end date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that
is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But
can't
figure out how to do the formula where the cells/columns have DATEs as
it's
contents.

Want the formula to - count the number of records that have dates that
are
greater then "specific date" and less then "specific date". And return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 216
Default Help - Function Count, but on dates not numbers

Further to post below - looks like the results is doing a subtraction an
given the balance. But not wanting a subtraction, but a count of how many
records are within that date frame.

Thanks

"Nadine" wrote:

tried the formula:
=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))


But the results provide an incorrect count.

We have a column with multiple dates over 3 years. But want to only count
how many records there are that are between the dates 01-APR-07 and 31-MAR-08.
If count manually should get 41 records, but calculation gives results of
37.

Thanks

"T. Valko" wrote:

Try one of these:

When you say:

greater then "specific date" and less then "specific date".


I'm assuming you do not want to include the start date and the end date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But can't
figure out how to do the formula where the cells/columns have DATEs as
it's
contents.

Want the formula to - count the number of records that have dates that are
greater then "specific date" and less then "specific date". And return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help - Function Count, but on dates not numbers

That particular formula will not count the start and end dates.

This "problem" arises quite often when someone makes a post and says:

Count *between* x and y when they meant to say count *from* x to y.

For example, if I say count the numbers between 1 and 10 that literally
means count 2,3,4,5,6,7,8,9.

So, to count the numbers *from* 1 to 10:

=COUNTIF(A1:A20,"=1")-COUNTIF(A1:A20,"10")

To count the numbers *between* 1 AND 10:

=COUNTIF(A1:A20,"1")-COUNTIF(A1:A20,"=10")


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
tried the formula:
=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))


But the results provide an incorrect count.

We have a column with multiple dates over 3 years. But want to only count
how many records there are that are between the dates 01-APR-07 and
31-MAR-08.
If count manually should get 41 records, but calculation gives results of
37.

Thanks

"T. Valko" wrote:

Try one of these:

When you say:

greater then "specific date" and less then "specific date".


I'm assuming you do not want to include the start date and the end date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that
is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But
can't
figure out how to do the formula where the cells/columns have DATEs as
it's
contents.

Want the formula to - count the number of records that have dates that
are
greater then "specific date" and less then "specific date". And return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 216
Default Help - Function Count, but on dates not numbers

THANKS!!!!! got it now, its working. happy happy. thanks.

"T. Valko" wrote:

That particular formula will not count the start and end dates.

This "problem" arises quite often when someone makes a post and says:

Count *between* x and y when they meant to say count *from* x to y.

For example, if I say count the numbers between 1 and 10 that literally
means count 2,3,4,5,6,7,8,9.

So, to count the numbers *from* 1 to 10:

=COUNTIF(A1:A20,"=1")-COUNTIF(A1:A20,"10")

To count the numbers *between* 1 AND 10:

=COUNTIF(A1:A20,"1")-COUNTIF(A1:A20,"=10")


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
tried the formula:
=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))


But the results provide an incorrect count.

We have a column with multiple dates over 3 years. But want to only count
how many records there are that are between the dates 01-APR-07 and
31-MAR-08.
If count manually should get 41 records, but calculation gives results of
37.

Thanks

"T. Valko" wrote:

Try one of these:

When you say:

greater then "specific date" and less then "specific date".

I'm assuming you do not want to include the start date and the end date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records that
is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But
can't
figure out how to do the formula where the cells/columns have DATEs as
it's
contents.

Want the formula to - count the number of records that have dates that
are
greater then "specific date" and less then "specific date". And return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine








  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help - Function Count, but on dates not numbers

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
THANKS!!!!! got it now, its working. happy happy. thanks.

"T. Valko" wrote:

That particular formula will not count the start and end dates.

This "problem" arises quite often when someone makes a post and says:

Count *between* x and y when they meant to say count *from* x to y.

For example, if I say count the numbers between 1 and 10 that literally
means count 2,3,4,5,6,7,8,9.

So, to count the numbers *from* 1 to 10:

=COUNTIF(A1:A20,"=1")-COUNTIF(A1:A20,"10")

To count the numbers *between* 1 AND 10:

=COUNTIF(A1:A20,"1")-COUNTIF(A1:A20,"=10")


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
tried the formula:
=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

But the results provide an incorrect count.

We have a column with multiple dates over 3 years. But want to only
count
how many records there are that are between the dates 01-APR-07 and
31-MAR-08.
If count manually should get 41 records, but calculation gives results
of
37.

Thanks

"T. Valko" wrote:

Try one of these:

When you say:

greater then "specific date" and less then "specific date".

I'm assuming you do not want to include the start date and the end
date.

=COUNTIF(A1:A20,""&DATE(2007,7,1))-COUNTIF(A1:A20,"="&DATE(2007,7,31))

Or:

C1 = 7/1/2007
D1 = 7/31/2007

=COUNTIF(A1:A20,""&C1)-COUNTIF(A1:A20,"="&D1)

If you *do* want to include the start date and end date:

=COUNTIF(A1:A20,"="&DATE(2007,7,1))-COUNTIF(A1:A20,""&DATE(2007,7,31))

=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,""&D1)


--
Biff
Microsoft Excel MVP


"Nadine" wrote in message
...
Hi, not sure if I can get help here on this are not but.....

Trying to create a formula where it counts the number of records
that
is
greater then .... but less then....
Problem is I know how to do this if the cells contain numbers. But
can't
figure out how to do the formula where the cells/columns have DATEs
as
it's
contents.

Want the formula to - count the number of records that have dates
that
are
greater then "specific date" and less then "specific date". And
return
the
results of how many records meet that criteria.

Thanks if any one can help.
Nadine








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
Function to count numbers in one Cell IE 1+2+10 Mitch Excel Worksheet Functions 6 August 30th 07 11:55 PM
count if function using dates Chris O''''Neill Excel Discussion (Misc queries) 1 August 3rd 07 12:04 AM
COUNT dates in ColumnY based on numbers in ColumnX M.Moncrief Excel Worksheet Functions 4 December 12th 06 08:09 PM
Using which function to calculatiing 2 set of numbers of days from 3 dates StephenL Excel Discussion (Misc queries) 2 March 19th 06 11:39 AM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM


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