LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Countif date before today

=countif(data!C2:C1000,"<"&A2)

--
---
HTH

Bob


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



"Joe M." wrote in message
...
I am trying to use countif to count all the dates in column C before
today.
To avoid the "volatile" error I have made a cell referencing today:
A1 =today()
A2 =date(year(a1),month(a1),day(a1))
My column C is in another worksheet called "data"
B1 =countif(data!C2:C1000,"<A2") returns zero
In data!C2 the date is 9/19/2006. To test I did this:
=if(data!c2<A2,"true","false") which returns true.
Why is the countif not returning the corerct count?
Thanks!



 
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
COUNTIF for numbers of dates in column which are 30 days older than today [email protected] Excel Worksheet Functions 4 April 3rd 23 02:39 PM
IF TODAY equals date in cell A10, or if TODAY is beyond that date SoupNazi Excel Worksheet Functions 4 April 23rd 07 01:14 AM
excel today countif over expired date JonnieP Excel Worksheet Functions 2 November 30th 05 10:38 PM
countif a date is greater than today Keith Excel Worksheet Functions 3 January 12th 05 03:37 AM
countif(a1:a12,">TODAY()") How do I get this to work? Dan Bork Excel Worksheet Functions 1 November 11th 04 10:54 PM


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