PC Review


Reply
Thread Tools Rate Thread

How do I get a function to execute on a specific date in Excel?

 
 
mfarino
Guest
Posts: n/a
 
      3rd Mar 2009
I am trying to get a result of a function to display in a cell based on the
system date. Once the date is passed, I would like to display the difference
in the two previous cells. I am using Excel 2007 to track changes, and there
are three key dates when I need the function to execute. I've been trying to
use the DATE and DATEVALUE functions, but can't quite seem to get what I am
looking for. thanks.
 
Reply With Quote
 
 
 
 
JBeaucaire
Guest
Posts: n/a
 
      3rd Mar 2009
Well, without the specific of which cells, something like should work.

A1 - some date in the future when you want this to occur
B1 - value 1
C1 - value 2

Formula in D1 to trigger when the date in A1 arrives:

=if(TODAY()>=A1,C1-B1,"pending")

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"mfarino" wrote:

> I am trying to get a result of a function to display in a cell based on the
> system date. Once the date is passed, I would like to display the difference
> in the two previous cells. I am using Excel 2007 to track changes, and there
> are three key dates when I need the function to execute. I've been trying to
> use the DATE and DATEVALUE functions, but can't quite seem to get what I am
> looking for. thanks.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Function formula that will return the date of a specific week =?Utf-8?B?R3JlZw==?= Microsoft Excel Worksheet Functions 4 12th Jun 2006 05:07 PM
can I execute and 'substring' function in Excel =?Utf-8?B?TGFycnk=?= Microsoft Excel Worksheet Functions 4 1st Jan 2006 08:16 PM
How do i execute a VBA function by clicking on an excel cell? =?Utf-8?B?TWF0dGhldw==?= Microsoft Excel Misc 1 7th Dec 2005 01:10 AM
specific date function jenniferm Microsoft Excel Worksheet Functions 2 20th Sep 2005 07:26 PM
how to execute a vba function automatically when openning the excel file Ayoung Chueng Microsoft Excel Programming 4 22nd Mar 2004 10:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:18 PM.