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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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