Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Counting Soecific dates in a range

 
   Windows Help (Home) -> Microsoft Excel RSS
Next:  blue screen - bad_pool_caller  
Author Message
Steve

External


Since: Sep 10, 2009
Posts: 4



(Msg. 1) Posted: Thu Sep 10, 2009 3:25 pm
Post subject: Counting Soecific dates in a range
Archived from groups: microsoft>public>excel (more info?)

Hi,

I have a series of dates in A3:A1000 and I only want to count the dates
in September 2009 **/09/09 (UK date format) in that range.

I looked at COUNT, COUNTIF etc. but they only seem to look for text strings.

I seem to be going around in circles with this.

 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
T. Valko

External


Since: Oct 22, 2008
Posts: 20



(Msg. 2) Posted: Thu Sep 10, 2009 3:25 pm
Post subject: Re: Counting Soecific dates in a range
Archived from groups: per prev. post (more info?)

Try this:

=COUNTIF(A1:A1000,">="&DATE(2009,9,1))-COUNTIF(A1:A1000,">"&DATE(2009,9,30))

Or, use cells to hold the date boundaries:

C1 = start date = 1/9/2009
D1 = end date = 30/9/2009

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

Format as General or Number

 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
Steve

External


Since: Sep 10, 2009
Posts: 4



(Msg. 3) Posted: Thu Sep 10, 2009 3:25 pm
Post subject: Re: Counting Soecific dates in a range
Archived from groups: per prev. post (more info?)

T. Valko penned:
> Try this:

> =COUNTIF(A1:A1000,">="&DATE(2009,9,1))-COUNTIF(A1:A1000,">"&DATE(2009,9,30))

Returns a FALSE

> Or, use cells to hold the date boundaries:

> C1 = start date = 1/9/2009
> D1 = end date = 30/9/2009

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

Returns a FALSE
 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
Dave Peterson

External


Since: Oct 17, 2008
Posts: 38



(Msg. 4) Posted: Thu Sep 10, 2009 3:25 pm
Post subject: Re: Counting Soecific dates in a range
Archived from groups: per prev. post (more info?)

I think you changed Biff's formula. That's a minus that separates terms, not an
equal sign.

If that's not it, you may want to try Biff's suggestion once more. And if that
doesn't work, post your exact formula.

Steve wrote:
>
> T. Valko penned:
> > Try this:
>
> > =COUNTIF(A1:A1000,">="&DATE(2009,9,1))-COUNTIF(A1:A1000,">"&DATE(2009,9,30))
>
> Returns a FALSE
>
> > Or, use cells to hold the date boundaries:
>
> > C1 = start date = 1/9/2009
> > D1 = end date = 30/9/2009
>
> > =COUNTIF(A1:A1000,">="&C1)-COUNTIF(A1:A1000,">"&D1)
>
> Returns a FALSE
>
> --
> Steve
 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
Steve

External


Since: Sep 10, 2009
Posts: 4



(Msg. 5) Posted: Fri Sep 11, 2009 4:25 am
Post subject: Re: Counting Soecific dates in a range
Archived from groups: per prev. post (more info?)

Dave Peterson penned:
> I think you changed Biff's formula. That's a minus that separates terms, not an
> equal sign.

> If that's not it, you may want to try Biff's suggestion once more. And if that
> doesn't work, post your exact formula.

> Steve wrote:

>> T. Valko penned:
>>> Try this:

>>> =COUNTIF(A1:A1000,">="&DATE(2009,9,1))-COUNTIF(A1:A1000,">"&DATE(2009,9,30))

>> Returns a FALSE

>>> Or, use cells to hold the date boundaries:

>>> C1 = start date = 1/9/2009
>>> D1 = end date = 30/9/2009

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

>> Returns a FALSE

This is the exact formula (copy and paste):

=COUNTIF(K3:K1000,">="&DATE(2009,9,1))-COUNTIF(K3:K1000,">"&DATE(2009,9,30))

You will note the only changes to original are I'm looking at a range
K3:K1000, sadly it still returns a FALSE. Would the fact that some cells
in the range are not populated i.e "blank"?

Thanks for your continuing help
 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
Billy Liddel

External


Since: Dec 4, 2008
Posts: 6



(Msg. 6) Posted: Fri Sep 11, 2009 4:25 am
Post subject: Re: Counting Soecific dates in a range
Archived from groups: per prev. post (more info?)

I can't reproduce your error with my data; you formula work OK. If your dates
were text values then this would produce a #VALUE! error not return a True
False answer.

If you would like to send the workbook to peter_atherton at hotmail dot com

replacing the at with @ and dot with . I'll try and see what's going on.

Regards
Peter

"Steve" wrote:

> Dave Peterson penned:
> > I think you changed Biff's formula. That's a minus that separates terms, not an
> > equal sign.
>
> > If that's not it, you may want to try Biff's suggestion once more. And if that
> > doesn't work, post your exact formula.
>
> > Steve wrote:
>
> >> T. Valko penned:
> >>> Try this:
>
> >>> =COUNTIF(A1:A1000,">="&DATE(2009,9,1))-COUNTIF(A1:A1000,">"&DATE(2009,9,30))
>
> >> Returns a FALSE
>
> >>> Or, use cells to hold the date boundaries:
>
> >>> C1 = start date = 1/9/2009
> >>> D1 = end date = 30/9/2009
>
> >>> =COUNTIF(A1:A1000,">="&C1)-COUNTIF(A1:A1000,">"&D1)
>
> >> Returns a FALSE
>
> This is the exact formula (copy and paste):
>
> =COUNTIF(K3:K1000,">="&DATE(2009,9,1))-COUNTIF(K3:K1000,">"&DATE(2009,9,30))
>
> You will note the only changes to original are I'm looking at a range
> K3:K1000, sadly it still returns a FALSE. Would the fact that some cells
> in the range are not populated i.e "blank"?
>
> Thanks for your continuing help
> --
> Steve
>
 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
Steve

External


Since: Sep 10, 2009
Posts: 4



(Msg. 7) Posted: Fri Sep 11, 2009 8:25 am
Post subject: Re: Counting Soecific dates in a range
Archived from groups: per prev. post (more info?)

Billy Liddel penned:
> I can't reproduce your error with my data; you formula work OK. If your dates
> were text values then this would produce a #VALUE! error not return a True
> False answer.

Hi Billy,

I copied the data out of the current SS to create a new one to send to
you, I reapplied the formula and it worked as expected, so I have now
copied and pasted this new column back into the original SS and all
works as expected?????

I'm scratching my head here as to what the problem was as I have double
and triple checked the data for text, I've reformatted the column
several times to ensure its the correct 'Date Format'.

Thanks for your help and suggestions
 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
Dave Peterson

External


Since: Oct 17, 2008
Posts: 38



(Msg. 8) Posted: Fri Sep 11, 2009 8:25 am
Post subject: Re: Counting Soecific dates in a range
Archived from groups: per prev. post (more info?)

I still think that you had an equal sign instead of a minus sign (that would
explain how you got a false returned).

Just a note on changing the format of the cells. That's not enough to change a
text value to a real date. You have to do more. Even hitting F2, then enter is
enough (after the format change).

Steve wrote:
>
> Billy Liddel penned:
> > I can't reproduce your error with my data; you formula work OK. If your dates
> > were text values then this would produce a #VALUE! error not return a True
> > False answer.
>
> Hi Billy,
>
> I copied the data out of the current SS to create a new one to send to
> you, I reapplied the formula and it worked as expected, so I have now
> copied and pasted this new column back into the original SS and all
> works as expected?????
>
> I'm scratching my head here as to what the problem was as I have double
> and triple checked the data for text, I've reformatted the column
> several times to ensure its the correct 'Date Format'.
>
> Thanks for your help and suggestions
>
> --
> Steve
>
> First things first, but not necessarily in that order.
> - Doctor Who
 >> Stay informed about: Counting Soecific dates in a range 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to make a SumIf range not a range ... but a sum of spe.. - =SUMIF(D3,AL3,"=H3+J3+L3+N3+P3+R3+T3+V3+X3+Z3+AB3+AD3") Here is what I am trying to do: If D3 = AL3 then I want it to return the sum of H3+J3+L3+N3+P3+R3+T3+V3+X3+Z3+AB3+AD3 I know it is something simple I am missing .......

how to populate a range with another range of data ? - Hi - imagine that I have 2 worksheets in my workbook. Worksheet 'MASTER' 5 columns x 4 rows Column 1 = KEY and Columns 2 - 5 = numbers (data) Worksheet 'DATA' 4 columns x 12 rows (3 groups of 4 rows) I have been trying to use a combo-box t...

counting values - I have a list of building data. Within that data, there are 15 unique towns. I want to know how many times a building of a certain age group occurs in each town. There are 13 age groups. For example: Los Angeles - 1930 = 34,000 Santa Barbara - 1910 = 67...

dates before 1900 - I'm using Excel 2003 with current updates under WinXP Pro, SP3. I have genealogy data with dates before 1900 with which Excel 2003 does not work. I want to play with the data, for example: 1. calculate difference between two dates 2. sort dates 3...

Linking To .XLS: Some Dates = "#Num!" ?? - I'm linking to a .XLS that contains, among other things, an "IssueDate" column. Looking directly at the spreadsheet, dates look a-ok and the column is formatted "Date". Looking at the same sheet through an MS Access link, most of th...
   Windows Help (Home) -> Microsoft Excel All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]