Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to insert a STATIC time into excel based on a condition in a cell. i.e. Cell A1 = "A" then insert the static time. Any ideas?

share|improve this question
2  
That can be resolved by using VBA. See link: excelforum.com/excel-programming-vba-macros/… I don't think there's another way to it. – Jacob Jan Tuinstra Dec 14 '12 at 6:02
1  
Ctrl+Shift+: will insert the current time (office.microsoft.com/en-us/excel-help/…) – Jacob Jan Tuinstra Dec 14 '12 at 6:19

Try this:

=IF(A1="A","10:43:00","")
share|improve this answer
    
That will only work if the time you want to appear is always 10:43. I think the OP is looking for a way to dynamically insert the current time at the moment the cell contents becomes "A" in the case of cell A1. – Andi Mohr Sep 9 '13 at 14:27
    
do you mean =IF(A1="A",NOW(),"") ? – inon Sep 9 '13 at 14:34
    
Sadly NOW() refreshes every time the worksheet recalculates, so assuming the OP wanted to record the time of change for multiple rows or once but then continue to use the workbook, NOW() wouldn't quite do the job, VBA is needed. – Andi Mohr Sep 10 '13 at 14:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .