Stop a date from updating each successive day

eyecare

New Member
Joined
Aug 27, 2002
Messages
16
This is the function I am using,

IF(C1=0, "", TODAY())

This works, however as you can see the resulting date will change. I would like the date to be fixed and not change.

Would appreciate your help

............... Thanks, Gene Gould OD
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Seems like an awfully complex way to do something that you could just type in the cell using maybe 8 keystrokes.
 
Upvote 0
I developed a macro for many of our people, then assigned it to a button. This one inputs Today() in cell G1, then copies, and Paste Special.

Sub CopyToday
Range("G1").Select
ActiveCell.FormulaR1C1 = "=TODAY()"
Range("G1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A1").Select
End Sub
 
Upvote 0
That could done with one line of code:

Code:
Sub CopyToday()
    Range("G1").Value = Format(Date, "Short Date")
End Sub
 
Upvote 0
On 2002-10-17 14:41, Andrew Poulsom wrote:
That could done with one line of code:

Code:
Sub CopyToday()
    Range("G1").Value = Format(Date, "Short Date")
End Sub

nice bit of code andrew, a question for you.

Is this possible if you enter a value, e.g 2 in column "G2" the date going back 2 days and so on?



Regards
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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