PC Review


Reply
Thread Tools Rate Thread

Automatically insert time in excel but not automatically updated

 
 
NeueN
Guest
Posts: n/a
 
      21st Dec 2008
I want to insert time automatically in a cell but I don't want the time
updated automatically.

let's say column A is "Customer Name" and column B is "Time Arrive". what i
am trying to make is when i type first customer's name in cell A2 then the
cell B2 should show automatically the time first customer arrives.

Using NOW() function, the time is updated every time i enter value in any
cell (such as: when i type the next customer's name in cell A3, A4, A5, and
so on).

Using Ctrl + Shift + ; i have to manually press those buttons.

Help please ...
 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      21st Dec 2008
Try JE McGimpsey's coverage of "Time and date stamps" at his page:
http://www.mcgimpsey.com/excel/timestamp.html
Scroll down to the part: Using a worksheet event macro
(You can't use formulas as the "date/time stamps" as these will recalc)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"NeueN" wrote:
> I want to insert time automatically in a cell but I don't want the time
> updated automatically.
>
> let's say column A is "Customer Name" and column B is "Time Arrive". what i
> am trying to make is when i type first customer's name in cell A2 then the
> cell B2 should show automatically the time first customer arrives.
>
> Using NOW() function, the time is updated every time i enter value in any
> cell (such as: when i type the next customer's name in cell A3, A4, A5, and
> so on).
>
> Using Ctrl + Shift + ; i have to manually press those buttons.
>
> Help please ...

 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      21st Dec 2008
Not quite automatic, but if you select the cell and do Ctrl-Shift-Colon, the
time will be inserted without a formula. Other than that it's VBA. HTH
Otto
"NeueN" <(E-Mail Removed)> wrote in message
news:35B1A73C-49E8-4D7F-BAEE-(E-Mail Removed)...
>I want to insert time automatically in a cell but I don't want the time
> updated automatically.
>
> let's say column A is "Customer Name" and column B is "Time Arrive". what
> i
> am trying to make is when i type first customer's name in cell A2 then the
> cell B2 should show automatically the time first customer arrives.
>
> Using NOW() function, the time is updated every time i enter value in any
> cell (such as: when i type the next customer's name in cell A3, A4, A5,
> and
> so on).
>
> Using Ctrl + Shift + ; i have to manually press those buttons.
>
> Help please ...



 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      21st Dec 2008
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'when entering data in a cell in Col A
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 1 Then
n = Target.Row
If Me.Range("A" & n).Value <> "" Then
Me.Range("B" & n).Value = Format(Now, "hh:mm:ss AM/PM")
End If
End If
enditall:
Application.EnableEvents = True
End Sub

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

Copy/paste the above into that sheet module. Alt + q to return to the Excel
window.

Enter a name in column A to get a static time in column B


Gord Dibben MS Excel MVP

On Sat, 20 Dec 2008 20:43:00 -0800, NeueN <(E-Mail Removed)>
wrote:

>I want to insert time automatically in a cell but I don't want the time
>updated automatically.
>
>let's say column A is "Customer Name" and column B is "Time Arrive". what i
>am trying to make is when i type first customer's name in cell A2 then the
>cell B2 should show automatically the time first customer arrives.
>
>Using NOW() function, the time is updated every time i enter value in any
>cell (such as: when i type the next customer's name in cell A3, A4, A5, and
>so on).
>
>Using Ctrl + Shift + ; i have to manually press those buttons.
>
>Help please ...


 
Reply With Quote
 
NeueN
Guest
Posts: n/a
 
      25th Dec 2008
Max, Otto Moehrbach, Gord Dibben,

thank you for your help. really solve my problems.






 
Reply With Quote
 
New Member
Join Date: Apr 2012
Posts: 1
 
      14th Apr 2012
Quote:
Originally Posted by NeueN View Post
Max, Otto Moehrbach, Gord Dibben,

thank you for your help. really solve my problems.
I am also facing a similar problem but with a little twist... Request all the experts to help me on this...

I run a saloon and I need to track the In time of customers as soon as they register themselves at the reception. So my first problem of entering the in time automatically was solved now the second problem is that I also need to give them the approximate wait time which I calculate automatically using a couple of formulas...

I have attached the excel sheet which i use for tracking..

I request all the experts to kindly help in automatically entering the customers Turn Time adjacent to there enter time....

Kindly look at the attachment
Attached Files
File Type: zip Wait Time.zip (307.6 KB, 2 views)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically insert autoshapes when cells are updated? mcwin Microsoft Excel Misc 0 29th Jan 2010 09:30 PM
Re: Automatically insert last updated date Bob Phillips Microsoft Excel Misc 1 22nd Jan 2007 11:04 PM
date and time updated automatically =?Utf-8?B?UmljaGFyZA==?= Microsoft Excel Worksheet Functions 1 5th Feb 2006 04:48 AM
Current date and time updated automatically =?Utf-8?B?UmljaGFyZA==?= Microsoft Excel Misc 7 4th Feb 2006 09:00 PM
automatically insert date and time into excel] =?Utf-8?B?c2xpbXZpY2Vz?= Microsoft Excel Misc 2 1st Nov 2005 06:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 PM.