Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
smunn
 
Posts: n/a
Default Calculate formula only once.


I have a worksheet that has multiple formulas on it. These formulas
need to update the values as more data is input. However, I have one
formula that I want to only calculate once and then remain as that
value.

Example: =IF(L6="","",NOW())

I want the formula cell to display the time that a value was entered
into L6 and then remain that value.

Thanks,


--
smunn
------------------------------------------------------------------------
smunn's Profile: http://www.excelforum.com/member.php...o&userid=29856
View this thread: http://www.excelforum.com/showthread...hreadid=495576

  #2   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Calculate formula only once.

Take a look at

http://www.mcgimpsey.com/excel/timestamp.html

In article ,
smunn wrote:

I have a worksheet that has multiple formulas on it. These formulas
need to update the values as more data is input. However, I have one
formula that I want to only calculate once and then remain as that
value.

Example: =IF(L6="","",NOW())

I want the formula cell to display the time that a value was entered
into L6 and then remain that value.

Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Calculate formula only once.

smunn

To enter a static date/time in a cell you cannot use the NOW() or TODAY()
functions.

These will always update.

Event code will place the static date/time in a cell if L6 < ""

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("$L$6")) Is Nothing Then Exit Sub
On Error GoTo CleanUp
Application.EnableEvents = False
With Target
If .Value < "" Then
Excel.Range("$M$6").Value = Now
Else: Excel.Range("$M$6").Value = ""
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub

This is event cxode and goes into the worksheet module.

Right-click on the sheet tab and "View Code".

Paste the above into that module.


Gord Dibben Excel MVP

On Thu, 22 Dec 2005 12:20:33 -0600, smunn
wrote:


I have a worksheet that has multiple formulas on it. These formulas
need to update the values as more data is input. However, I have one
formula that I want to only calculate once and then remain as that
value.

Example: =IF(L6="","",NOW())

I want the formula cell to display the time that a value was entered
into L6 and then remain that value.

Thanks,

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 do I calculate a formula once Pavlova Excel Worksheet Functions 0 November 15th 05 12:19 PM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM
Formula to calculate over-time Debbie Mack Excel Discussion (Misc queries) 1 September 16th 05 08:37 PM
I need a formula to calculate the ratio of #'s in a row and column KellyKulpa Excel Discussion (Misc queries) 8 September 13th 05 06:44 PM
X IN A CELL TO CALCULATE A FORMULA JUSTIN Excel Worksheet Functions 1 January 3rd 05 11:08 PM


All times are GMT +1. The time now is 10:22 PM.

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

About Us

"It's about Microsoft Excel"