Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

date formula not right

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Bob - 25 Nov 2007 01:39 GMT
=IF(OR(ISBLANK(A1),A1=0),"",NOW())
I am using this formula in B1 to record the date when  cell A1 has been
updated. Problem is the date is always updating to the current date. How can
I change it so it show when the cell was updated?

Thanks
Alan - 25 Nov 2007 02:13 GMT
=NOW() or =TODAY() etc will always update everytime the worksheet
calculates.
There is as far as I know no formula which will return a fixed date, Ctrl
and : pressed together will give the date which will not change.You can use
VB code to hard copy the date when you update A1, or you can copy > paste
special > values to lose the formula and leave only the result in A1.
If you want to use VB code there are lots of examples on these groups which
can be Googled.
Regards,
Alan.
> =IF(OR(ISBLANK(A1),A1=0),"",NOW())
> I am using this formula in B1 to record the date when  cell A1 has been
[quoted text clipped - 3 lines]
>
> Thanks
Bill Kuunders - 25 Nov 2007 02:23 GMT
enter this in the worksheet code under "change"

Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.Column = 1 Then
       Application.EnableEvents = False
       Target.Offset.Offset(0, 1) = Now()
       Application.EnableEvents = True
   End If
End Sub

As described in OZgrid http://www.ozgrid.com/forum/showthread.php?t=37642

Regards
Signature

Greetings from New Zealand

> =IF(OR(ISBLANK(A1),A1=0),"",NOW())
> I am using this formula in B1 to record the date when  cell A1 has been
[quoted text clipped - 3 lines]
>
> Thanks
Alan - 28 Jan 2008 02:39 GMT
Test
> =IF(OR(ISBLANK(A1),A1=0),"",NOW())
> I am using this formula in B1 to record the date when  cell A1 has been
[quoted text clipped - 3 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.