Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

How to auto update date contained in formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wmc - 18 Apr 2007 01:10 GMT
I need to count the number of cells with dates that have been reached (as of
today) and count the number of cells that hold future dates.  For example,
Column "A"  holds all past, present (today) and future dates.  My formula
states =COUNTIF(A2:A17,"<=today's date") to count the number of cells with
dates that have been reached as of today, and =COUNTIF(A:A17,">today's date")
to count the number of cells that hold future dates.
That's the part where I am stuck.  I don't know how to write the formula so
Excel can automatically update every day to the current date.  Right now, I
am resorting to manually writing today's date into the formula or by entering
it as Ctrl +;.  I have tried to write today's date as TODAY(), hoping that
Excel would automatically bring up the date in the formula.  Instead,  I am
getting a  zero return on the cell count.  I'm sure that this is a no-brainer
for many, but a brain-wrecker for me and I'd appreciate anyone's help!  
Thanks in advance.
wmc
Dave Peterson - 18 Apr 2007 01:20 GMT
=COUNTIF(A2:A17,"<="&today())

or you could put the date in a cell:
=COUNTIF(A2:A17,"<="&a99)

or you could put the date in the formula:
=COUNTIF(A2:A17,"<="&date(2007,4,17))

>  I need to count the number of cells with dates that have been reached (as of
> today) and count the number of cells that hold future dates.  For example,
[quoted text clipped - 11 lines]
> Thanks in advance.
>  wmc

Signature

Dave Peterson

wmc - 18 Apr 2007 16:14 GMT
Dave,
I picked your first suggestion and it's working like a charm.  
Thanks for the education!
Signature

wmc

> =COUNTIF(A2:A17,"<="&today())
>
[quoted text clipped - 19 lines]
> > Thanks in advance.
> >  wmc
Barb Reinhardt - 18 Apr 2007 01:26 GMT
Try this:

=SUMPRODUCT(--(A2:A17<=TODAY()))

HTH,

Barb Reinhardt

>  I need to count the number of cells with dates that have been reached (as of
> today) and count the number of cells that hold future dates.  For example,
[quoted text clipped - 11 lines]
> Thanks in advance.
>  wmc
wmc - 18 Apr 2007 16:16 GMT
Barb,
It's great to know that there is an alternative to =COUNTIF... and I thank
you for the quick crash course in "Excel for Newbies"!
Signature

wmc

> Try this:
>
[quoted text clipped - 19 lines]
> > Thanks in advance.
> >  wmc
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.