A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Possible to get a time/date when a cell is written?



 
 
Thread Tools Display Modes
  #1  
Old November 11th, 2009, 02:48 PM posted to microsoft.public.excel.misc
Twoflower
external usenet poster
 
Posts: 1
Default Possible to get a time/date when a cell is written?

Is it possible to get a date in a cell when another specific cell is "filled,
written, populated (not empty)"?
If yes, how?
  #2  
Old November 11th, 2009, 03:04 PM posted to microsoft.public.excel.misc
Ms-Exl-Learner
external usenet poster
 
Posts: 522
Default Possible to get a time/date when a cell is written?

Assume that if any value is entered in A1 cell then if you want to display
the today’s date in some other cell then use this formula.

=IF(A1"",TODAY(),"")

Instead of displaying today’s date if you want to display a specific date
then use the formula like this…

=IF(A1"","11-11-2009","")

The above will result text value. For getting the date values use the below

=IF(A1"",VALUE("11-11-2009"),"")

Or

=IF(A1"",--"11-11-2009","")

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"Twoflower" wrote:

Is it possible to get a date in a cell when another specific cell is "filled,
written, populated (not empty)"?
If yes, how?

  #3  
Old November 11th, 2009, 03:11 PM posted to microsoft.public.excel.misc
JLatham
external usenet poster
 
Posts: 1,896
Default Possible to get a time/date when a cell is written?

A note or two (based on Ms-Exl-Learner's response)
If you use the TODAY() function, it returns just the date. If you need both
date and time, then use NOW() instead.

Problem with both of them is that they are volatile; that is they will
always report the current date/time each time the worksheet is recalculated.
To get a permanent record of the date/time that won't change over time you
will have to resort to a VBA solution.

"Twoflower" wrote:

Is it possible to get a date in a cell when another specific cell is "filled,
written, populated (not empty)"?
If yes, how?

  #4  
Old November 11th, 2009, 07:44 PM posted to microsoft.public.excel.misc
CLR
external usenet poster
 
Posts: 1,638
Default Possible to get a time/date when a cell is written?

Another way.............

Private Sub Worksheet_Change(ByVal Target As Range)
'Macro inserts date in Column B for change in Column A
ActiveCell.Select
If ActiveCell.Column = 1 Then 'Limits macro action to column A
If Not Selection Is Nothing Then
Application.Selection.Offset(0, 1).Value = Now
End If
Else
End If
End Sub

Vaya con Dios,
Chuck, CABGx3




"Twoflower" wrote:

Is it possible to get a date in a cell when another specific cell is "filled,
written, populated (not empty)"?
If yes, how?

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.