Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JonnieP
 
Posts: n/a
Default COUNTIF < DATE with other data in column

Hi

I want to count the dates in a column that are less than today, so i am using:

=COUNTIF('AM Live'!H:H,"<="&TODAY())

But this returns the wrong value.
In column H is other data than dates and think this is causing the error.

At the moment it returns 88 but there are only 9 or so less than today???

Thanks

John
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Dates are nothing more than numbers in Excel, so any cell
in col. H with a value of 38,456 (which equates to April
14, 2005) will be counted in your formula. You need to
somehow distinguish actual dates from ordinary numbers in
your column.

To learn more about date/time in XL, see:

http://www.cpearson.com/excel/datetime.htm#SerialDates

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi

I want to count the dates in a column that are less than

today, so i am using:

=COUNTIF('AM Live'!H:H,"<="&TODAY())

But this returns the wrong value.
In column H is other data than dates and think this is

causing the error.

At the moment it returns 88 but there are only 9 or so

less than today???

Thanks

John
.

  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

I meant to say "with a value of 38,456 or less"

Jason

-----Original Message-----
Dates are nothing more than numbers in Excel, so any

cell
in col. H with a value of 38,456 (which equates to April
14, 2005) will be counted in your formula. You need to
somehow distinguish actual dates from ordinary numbers

in
your column.

To learn more about date/time in XL, see:

http://www.cpearson.com/excel/datetime.htm#SerialDates

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi

I want to count the dates in a column that are less

than
today, so i am using:

=COUNTIF('AM Live'!H:H,"<="&TODAY())

But this returns the wrong value.
In column H is other data than dates and think this is

causing the error.

At the moment it returns 88 but there are only 9 or so

less than today???

Thanks

John
.

.

  #4   Report Post  
bj
 
Posts: n/a
Default

one other thing that can be done is if you have a lowest date you are
interested in and none of the other numbers have are other higher than the
serial number of that date the following equaition can be used:
=countif(H:H,"<38456")-countif(H:H,"36526")
if you only interested in dates in the 21st century

"Jason Morin" wrote:

I meant to say "with a value of 38,456 or less"

Jason

-----Original Message-----
Dates are nothing more than numbers in Excel, so any

cell
in col. H with a value of 38,456 (which equates to April
14, 2005) will be counted in your formula. You need to
somehow distinguish actual dates from ordinary numbers

in
your column.

To learn more about date/time in XL, see:

http://www.cpearson.com/excel/datetime.htm#SerialDates

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi

I want to count the dates in a column that are less

than
today, so i am using:

=COUNTIF('AM Live'!H:H,"<="&TODAY())

But this returns the wrong value.
In column H is other data than dates and think this is

causing the error.

At the moment it returns 88 but there are only 9 or so

less than today???

Thanks

John
.

.


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
Prevent Hidden Column data from being copied/pasted? Jugglertwo Excel Discussion (Misc queries) 2 April 9th 05 12:45 PM
How do I restrict data movement (cut & paste) to only one column? Kev Nurse Excel Discussion (Misc queries) 8 February 15th 05 02:41 AM
merge data from multiple columns to single column triggerthehorse Excel Worksheet Functions 2 January 17th 05 07:19 PM
Matching data in one column to another excel idiot Excel Worksheet Functions 1 January 14th 05 02:15 PM
getting data from 2 excel sheets automatically pinar Excel Worksheet Functions 0 November 9th 04 11:47 AM


All times are GMT +1. The time now is 04:42 PM.

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"