Static Date

Patricks7

New Member
Joined
Aug 23, 2011
Messages
3
I want to create a formula that will create a static date. for example
=if(a1="c",today(),0) Is it possible to have that date stay the same even though it says today and will change automatically the following days?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You could use a circular reference, however, these are generally ill advised - for sake of demo. assuming B1 is to contain the formula driven date:

Code:
=IF(A1<>"c",0,IF(B1,B1,TODAY()))
custom format to mask 0: dd-mmm-yy;;;

The above would insert a date when A1 is altered to "c" thereafter it would remain static until such time as A1 was altered. Were "c" subsequently reinstated to A1 then the live date would be added back to B1.

If you wish to test the above you can use NOW() in place of TODAY() - format as hh:mm:ss to see how the value persists.

If you prefer to avoid circular calculations you might consider using VBA (Change Event).
 
Upvote 0
Thank you, I will try it. What I'm trying to accomplish is the same as pushing control + semi colon to create a permanent date but using an if( statement.
Thanks again
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top