Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Inserting date from formuls

Hi all,

I have a data verification drop down created and I am trying to make the
date poplate in certain cells depending on my drop down choice. The main
thing I have found for this would be the "today()" value. The problem with
this though is that the date changes daily. I need this to be a static value.
Any help would be great. Thanks.

=IF(K8="closed", TODAY())
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Inserting date from formuls

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("K1:K20")) Is Nothing Then
With Target
If .Value = "closed" 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 sheet event code. Right-click on sheet tab and "View Code"

Copy/paste the code into that sheet module.

Edit range to suit. Alt + q to return to Excel.


Gord Dibben MS Excel MVP


On Wed, 3 Feb 2010 11:56:01 -0800, TechGuy
wrote:

Hi all,

I have a data verification drop down created and I am trying to make the
date poplate in certain cells depending on my drop down choice. The main
thing I have found for this would be the "today()" value. The problem with
this though is that the date changes daily. I need this to be a static value.
Any help would be great. Thanks.

=IF(K8="closed", TODAY())


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
Formuls to turn date red John M. Excel Discussion (Misc queries) 1 January 27th 07 06:02 PM
Formating Font in a Formuls Silvanus New Users to Excel 5 December 9th 05 03:22 PM
Formuls updating Adam Excel Worksheet Functions 2 October 19th 05 07:49 PM
how do I do a formuls in excel such as (if a1=somthing then b1=a . Brett Excel Worksheet Functions 3 January 9th 05 08:15 PM
making a column of formuls constant Jake Excel Worksheet Functions 2 November 2nd 04 01:45 AM


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

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

About Us

"It's about Microsoft Excel"