Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
wmc wmc is offline
external usenet poster
 
Posts: 7
Default How to auto update date contained in formula

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
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default How to auto update date contained in formula

=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))




wmc wrote:

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
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,355
Default How to auto update date contained in formula

Try this:

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

HTH,

Barb Reinhardt
"wmc" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.newusers
wmc wmc is offline
external usenet poster
 
Posts: 7
Default How to auto update date contained in formula

Dave,
I picked your first suggestion and it's working like a charm.
Thanks for the education!
--
wmc


"Dave Peterson" wrote:

=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))




wmc wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.newusers
wmc wmc is offline
external usenet poster
 
Posts: 7
Default How to auto update date contained in formula

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"!
--
wmc


"Barb Reinhardt" wrote:

Try this:

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

HTH,

Barb Reinhardt
"wmc" wrote:

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

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
How to auto update a cell with a current date Kell2604 Excel Discussion (Misc queries) 2 June 23rd 06 09:18 PM
canceling auto date update unexceller New Users to Excel 1 June 8th 06 07:40 AM
How to turn off auto update on a formula Dave Excel Discussion (Misc queries) 0 February 20th 06 09:15 PM
Auto-adjust cell height to accommodate contained text. PETBerkeley Excel Discussion (Misc queries) 5 October 28th 05 05:50 PM
Can I disable auto formula update? jch New Users to Excel 4 August 9th 05 06:31 PM


All times are GMT +1. The time now is 07:46 AM.

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"