Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2012, 09:17 AM
zks zks is offline Return cuurent time when another cell is updated Windows XP Return cuurent time when another cell is updated Office 2003
Novice
Return cuurent time when another cell is updated
 
Join Date: Jan 2012
Posts: 3
zks is on a distinguished road
Default Return cuurent time when another cell is updated

I have a unsolved issue with this problem:



There is a table with a lot of data, and some of them we change couple of times. I want to have a cell(s) where I can get the time (hh:mm:ss) when that cell was filled with data (this cell is empty). (Exp: A1 is empty. At 07:25:33 I entered a data in A1. I want to have this time (07:25:33) at B1 cell. Before I print this report (last update Exp: 15:20:25) i will have a cell (C1) where I will use =Now() and I will got 15:20:25. My point is to have, at D1, how much time I was working on this sheet D1:=C1-B1!

I need a help with this!

Thanks
Reply With Quote
  #2  
Old 01-20-2012, 10:23 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Return cuurent time when another cell is updated Windows XP Return cuurent time when another cell is updated Office 2003
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Cross post
http://www.excelforum.com/excel-gene...s-updated.html
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 01-20-2012, 10:31 AM
zks zks is offline Return cuurent time when another cell is updated Windows XP Return cuurent time when another cell is updated Office 2003
Novice
Return cuurent time when another cell is updated
 
Join Date: Jan 2012
Posts: 3
zks is on a distinguished road
Default

SOLVED....

B1=IF(A1<>"",IF(B1="",NOW(),B1),"")

Thanks friends, .. from all Excel forums on internet!
Reply With Quote
  #4  
Old 01-20-2012, 11:25 AM
Catalin.B Catalin.B is offline Return cuurent time when another cell is updated Windows Vista Return cuurent time when another cell is updated Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Glad you found the solution, but i really believe it's wrong...
For 2 reasons: you create a circular reference by refering in the formula to the cell where the formula is placed, and second reason is that if you eliminate the first problem, and you have a value in A1, your formula will put a formula in B1: Now(), formula that will permanently refresh, and you said you need the time when data is entered in A1, not the Now() value..
To insert a permanent date and time value in a cell, can be done with a macro, targeted to A column
Reply With Quote
  #5  
Old 01-20-2012, 11:44 AM
zks zks is offline Return cuurent time when another cell is updated Windows XP Return cuurent time when another cell is updated Office 2003
Novice
Return cuurent time when another cell is updated
 
Join Date: Jan 2012
Posts: 3
zks is on a distinguished road
Smile Circular Formulas

That is correct, but after I'm done and I print the report I dont need this sheet anymore ... BUT for the future use of the sheet, I should probably consider your solution!

I enabled the circular formula with:
tools > options > calculation tab and click the iteration box

Thanks for the all Help!
Reply With Quote
  #6  
Old 01-20-2012, 12:07 PM
Catalin.B Catalin.B is offline Return cuurent time when another cell is updated Windows Vista Return cuurent time when another cell is updated Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

This is the way to get a good result
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim RNG As Range, cell
Set RNG = ActiveSheet.Range("A2:A10")
If Not Intersect(Target, RNG) Is Nothing Then
For Each cell In RNG
If Len(cell) > 0 And Not IsEmpty(cell) Then
cell.Offset(0, 1) = Now()
End If
Next cell
End If
End Sub
Attached Files
File Type: xlsm worksheet change.xlsm (18.2 KB, 7 views)
Reply With Quote
  #7  
Old 01-22-2012, 10:24 PM
Catalin.B Catalin.B is offline Return cuurent time when another cell is updated Windows Vista Return cuurent time when another cell is updated Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Made some corrections to work properly:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim RNG As Range, cell
Set RNG = ActiveSheet.Range("A2:A10")
If Not Intersect(Target, RNG) Is Nothing Then
For Each cell In RNG
If Len(cell) > 0 And IsEmpty(cell.Offset(0, 1)) Then
cell.Offset(0, 1) = Now()
End If
Next cell
End If
End Sub
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Return cuurent time when another cell is updated Cell formatting for time - Excel 2010 PomDave Excel 5 09-05-2011 10:49 PM
Item Already updated simon@resultsoftware.co.u Outlook 0 07-25-2011 04:30 AM
Return cuurent time when another cell is updated How can references be updated automatically? ezthelm Word 2 05-30-2011 03:45 AM
Return cuurent time when another cell is updated Add a period of time to a referenced "Time" cell? derelyth Excel 4 03-27-2011 04:31 PM
Outlook 2002 duplicating updated calendar events RMTony Outlook 0 12-29-2010 11:48 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft