Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.