Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ed Ed is offline
external usenet poster
 
Posts: 279
Default Recording the date another cell is edited or modified.

Is there a function or formula for 19 used to record the date the contents of
another cell are modified? For example, if the entry in cell A1 is "beta"
and the entry of "beta" into cell A1 was made on 11/1/06 that date would be
recorded in cell B1. The entry in cell B1 is unchanged until the entry in
cell A1 is changed until cell A1 is modified.

Thank You for your help,

Ed
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 318
Default Recording the date another cell is edited or modified.

Ed,
You will probably need to use VBA for this and hence you will have more luck
wth the answer if you ask the question in that (Excel.Programming) group.
Alok

"Ed" wrote:

Is there a function or formula for 19 used to record the date the contents of
another cell are modified? For example, if the entry in cell A1 is "beta"
and the entry of "beta" into cell A1 was made on 11/1/06 that date would be
recorded in cell B1. The entry in cell B1 is unchanged until the entry in
cell A1 is changed until cell A1 is modified.

Thank You for your help,

Ed

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Recording the date another cell is edited or modified.

As Alok suggests, you would need VBA event code to do the job.

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:A10")) Is Nothing Then
'change range to suit
With Target
If .Value < "" Then
.Offset(0, 1).Value = Format(Now, "dd mmm yyyy hh:mm:ss")
End If
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

This is event code. Right-click on the sheet tab and "View Code".

Copy/paste the above into that sheet module.

Enter anything in A1 and the date will be entered into B1

Note: as written it works on any cell in the range A1:A10.


Gord Dibben MS Excel MVP

On Fri, 1 Dec 2006 17:14:00 -0800, Ed wrote:

Is there a function or formula for 19 used to record the date the contents of
another cell are modified? For example, if the entry in cell A1 is "beta"
and the entry of "beta" into cell A1 was made on 11/1/06 that date would be
recorded in cell B1. The entry in cell B1 is unchanged until the entry in
cell A1 is changed until cell A1 is modified.

Thank You for your help,

Ed


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to show the date a spreadsheet was modified in a cell k2224z Excel Discussion (Misc queries) 1 August 28th 06 11:25 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Date Range within one cell Cachod1 New Users to Excel 5 October 18th 05 03:30 AM
update a date cell only when worksheet is edited Joe Black Excel Discussion (Misc queries) 1 September 23rd 05 05:11 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"