Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
aaronwexler
 
Posts: n/a
Default Counting the number of dates?

In a worksheet of mine I have a bunch of dates in column A in the format
dd/mm/yyyy. I also have data in between the dates in that column and I was
wondering if there was a formula that will count the number of dates.

Thanks Aaron
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

If the other data is not numbers you can use

=SUMPRODUCT(--ISNUMBER(A1:A100))

if there could be other numbers, then if you know the start and end dates
you could use

=SUMPRODUCT(--(A1:A100=DATE(2005,1,1)),--(A1:A100<=DATE(2005,12,31)))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
In a worksheet of mine I have a bunch of dates in column A in the format
dd/mm/yyyy. I also have data in between the dates in that column and I

was
wondering if there was a formula that will count the number of dates.

Thanks Aaron



  #3   Report Post  
aaronwexler
 
Posts: n/a
Default

Thanks Bob, I tried the second formula because there are other number in
column A, but I still just get a zero as an answer. Does the date have to be
in a certain format?

"Bob Phillips" wrote:

If the other data is not numbers you can use

=SUMPRODUCT(--ISNUMBER(A1:A100))

if there could be other numbers, then if you know the start and end dates
you could use

=SUMPRODUCT(--(A1:A100=DATE(2005,1,1)),--(A1:A100<=DATE(2005,12,31)))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
In a worksheet of mine I have a bunch of dates in column A in the format
dd/mm/yyyy. I also have data in between the dates in that column and I

was
wondering if there was a formula that will count the number of dates.

Thanks Aaron




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

It has to be a date not text. Where do the dates come from?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
Thanks Bob, I tried the second formula because there are other number in
column A, but I still just get a zero as an answer. Does the date have to

be
in a certain format?

"Bob Phillips" wrote:

If the other data is not numbers you can use

=SUMPRODUCT(--ISNUMBER(A1:A100))

if there could be other numbers, then if you know the start and end

dates
you could use

=SUMPRODUCT(--(A1:A100=DATE(2005,1,1)),--(A1:A100<=DATE(2005,12,31)))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
In a worksheet of mine I have a bunch of dates in column A in the

format
dd/mm/yyyy. I also have data in between the dates in that column and

I
was
wondering if there was a formula that will count the number of dates.

Thanks Aaron






  #5   Report Post  
aaronwexler
 
Posts: n/a
Default

The dates are dates not text. I type in 8/12 for example and it converts it
to a date. I double checked in the "format" "cell" menu and they are dates.
I'm not sure what you mean by where they come from. I am keeping track of my
day trades by day, if thats what you mean.

"Bob Phillips" wrote:

It has to be a date not text. Where do the dates come from?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
Thanks Bob, I tried the second formula because there are other number in
column A, but I still just get a zero as an answer. Does the date have to

be
in a certain format?

"Bob Phillips" wrote:

If the other data is not numbers you can use

=SUMPRODUCT(--ISNUMBER(A1:A100))

if there could be other numbers, then if you know the start and end

dates
you could use

=SUMPRODUCT(--(A1:A100=DATE(2005,1,1)),--(A1:A100<=DATE(2005,12,31)))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
In a worksheet of mine I have a bunch of dates in column A in the

format
dd/mm/yyyy. I also have data in between the dates in that column and

I
was
wondering if there was a formula that will count the number of dates.

Thanks Aaron








  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

That one too?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
The dates are dates not text. I type in 8/12 for example and it converts

it
to a date. I double checked in the "format" "cell" menu and they are

dates.
I'm not sure what you mean by where they come from. I am keeping track of

my
day trades by day, if thats what you mean.

"Bob Phillips" wrote:

It has to be a date not text. Where do the dates come from?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in message
...
Thanks Bob, I tried the second formula because there are other number

in
column A, but I still just get a zero as an answer. Does the date

have to
be
in a certain format?

"Bob Phillips" wrote:

If the other data is not numbers you can use

=SUMPRODUCT(--ISNUMBER(A1:A100))

if there could be other numbers, then if you know the start and end

dates
you could use


=SUMPRODUCT(--(A1:A100=DATE(2005,1,1)),--(A1:A100<=DATE(2005,12,31)))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aaronwexler" wrote in

message
...
In a worksheet of mine I have a bunch of dates in column A in the

format
dd/mm/yyyy. I also have data in between the dates in that column

and
I
was
wondering if there was a formula that will count the number of

dates.

Thanks Aaron








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
Calculating number of weeks from two dates spudgun Excel Discussion (Misc queries) 5 August 4th 05 12:08 AM
counting based ona number of variables. vipa2000 Excel Worksheet Functions 11 July 29th 05 04:08 PM
Counting the number of rows blurboiboi Excel Worksheet Functions 1 July 13th 05 11:20 AM
Counting Dates Jerry Excel Worksheet Functions 3 March 11th 05 05:19 AM
Count the number of dates in a range that are earlier than today. DeborahS Excel Worksheet Functions 1 March 9th 05 01:54 AM


All times are GMT +1. The time now is 06:20 PM.

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"