todays date

T

Tricia

Hi I have a cell that I want to know when something will be finished i.e.
today()+30.which gives 02/07/04. This is ok until I open the spreadsheet
tomorrow when I will get 03/07/04. How can I get the date 02/07/04 to remain
every day or do I just enter the date manually?
Thanks tricia
 
N

Norman Harker

Hi Tricia!

You've noted that TODAY() is volatile and will change on recalculation
if the date has changed.

You might prefer entry using:

Ctrl + ;
 
D

David McRitchie

Hi Tricia,
You would need a macro.

If you say you have a cell, you are going to get a specific
solution that only works for one cell on the active worksheet.

Don't you have to enter something manually anyway?

You can use Ctrl+; (semicolon) to get a constant for the
current date and use a formula in A2 for today+30
=A1+30

You can use an Event Macro to check if a cell on the same
row as something you update is empty and if it is to
fill today's date + 30.

For a quick example suppose you want
Today's date as a constant in Column A, date + 30
in column B whenever a new entry is made in Column C.
The actual way new entry would be determined (as opposed
to an update to cell in column C) would be if Column A in the row is still empty.

the following is modified from #autodate in
Event Macros, Worksheet Events and Workbook Events
http://www.mvps.org/dmcritchie/excel/event.htm#autodate
If this is the type of thing you want to do, please look over the
entire page.

Private Sub Worksheet_Change(ByVal Target As Range)
'to install -- right-click on the sheettab of the sheet to
' be used in and choose 'view code'. Paste this Worksheet
' event macro into the module.
If Target.Column <> 3 Then Exit Sub
If Target.Row = 1 Then Exit Sub
If IsEmpty(Target.Offset(0, -2)) _
and IsEmpty(target.offset(0,-1)) Then
Target.Offset(0, -2) = Date
Target.offset(0, -1) = Date + 30
End If
End Sub
 
J

Jim Rech

If you're using the TODAY or NOW function then they will always recompute.
An easy way to enter today's date as a constant is to press Ctrl+; then
another cell can reference that cell, e.g., =A1+30

--
Jim Rech
Excel MVP
| Hi I have a cell that I want to know when something will be finished i.e.
| today()+30.which gives 02/07/04. This is ok until I open the spreadsheet
| tomorrow when I will get 03/07/04. How can I get the date 02/07/04 to
remain
| every day or do I just enter the date manually?
| Thanks tricia
|
|
 
T

Tricia

Tricia said:
Hi I have a cell that I want to know when something will be finished i.e.
today()+30.which gives 02/07/04. This is ok until I open the spreadsheet
tomorrow when I will get 03/07/04. How can I get the date 02/07/04 to remain
every day or do I just enter the date manually?
Thanks tricia
Hi the ctrl+; is what I need. Nothing too complicated. I have different
quantities of things i.e toys =30, books = 40 and if 2 or 3 were used each
day starting from today when would they be finished. Too much time on my
hands. Thanks Tricia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top