Share via

Timestamp in excel using drop-downs

Shani Cook 20 Reputation points
2025-10-30T21:27:18.33+00:00

Hello, I am trying to create a timestamp without using VA, or whatever it is called-sorry I can't remember. What I'm working with is a IF formula but I'm not sure if I'm doing it correctly or filling in the proper information. What I have is =IF(AND(A17<>"D",A17<>A17),NOW(),IF(A17<>"D",D17,"TIME")). But I don't feel that's right. What I need is if the drop-down is D than the column titled end time would have the exact timestamp when D is selected. So if A17 is D than D17 needs to be the time. Thank you so much if anyone is able to help.

Microsoft 365 and Office | Other
0 comments No comments

Answer accepted by question author

David Sanchez 19,075 Reputation points Independent Advisor
2025-10-30T22:31:07.6366667+00:00

Hi there! My name is David. It’s a pleasure to help you today.Regarding your question, I can suggest the following formula:

=IF($A17="D", IF(D17="", NOW(), D17), "")

This formula will display the exact timestamp when "D" is selected from the drop-down list, and will show a blank cell if any other option is chosen.

However, for it to work correctly, you'll need to adjust your Excel settings. Go to File > Options > Formulas, check the box for Enable iterative calculation, then set Maximum Iterations = 1 and Maximum Change = 0.1, and click OK.

Finally, in the cell where you apply the formula, change the format from General to Time. If you want to display both the date and time, select More Number Formats, then choose Custom, and from the list select m/d/yyyy hh:mm.

Let me know if the shared information has been helpful. Regards.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.