Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
johnp
 
Posts: n/a
Default enter a time into a cell, have the cell show two times the entry

The cell would have a time format of 00:00:00 or 00:00.
If one entered 01:00:00 into the cell, the cell would show 02:00:00.
If one entered 00:00:32 into the cell, the cell would show 00:01:04.

--
johnp
  #2   Report Post  
Vasant Nanavati
 
Posts: n/a
Default

"johnp" wrote in message
...
The cell would have a time format of 00:00:00 or 00:00.
If one entered 01:00:00 into the cell, the cell would show 02:00:00.
If one entered 00:00:32 into the cell, the cell would show 00:01:04.


Why???

--

Vasant


  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

This requires an event macro. Assuming that the cell is A1, put this in
your worksheet code module (right-click the worksheet tab and choose
View Code):

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Address(False, False) = "A1" Then
Application.EnableEvents = False
.Value = 2 * .Value
Application.EnableEvents = True
End If
End With
End Sub


In article ,
"johnp" wrote:

The cell would have a time format of 00:00:00 or 00:00.
If one entered 01:00:00 into the cell, the cell would show 02:00:00.
If one entered 00:00:32 into the cell, the cell would show 00:01:04.

  #4   Report Post  
johnp
 
Posts: n/a
Default

Thanks to JEM for great help.
Works great in cell 1A, but how do I get it to work in more than one cell of
a sheet?
Tried editing, but am in the dark as to what to do.
--
johnp


"johnp" wrote:

The cell would have a time format of 00:00:00 or 00:00.
If one entered 01:00:00 into the cell, the cell would show 02:00:00.
If one entered 00:00:32 into the cell, the cell would show 00:01:04.

--
johnp

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 enter more than one line in the same Excel Cell by using. vsimmons Excel Discussion (Misc queries) 12 January 3rd 09 01:04 AM
Problem with IF condition or vector lookup? J-Philippe Excel Worksheet Functions 4 January 15th 05 08:41 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM


All times are GMT +1. The time now is 11:07 AM.

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"