![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 25
|
Thank you so much for all your help. This board is filled With extreme intelligence. A very good resource!
I have reviewed my problem and have one more question. If cell A1 has a Dynamic Data Exchange entry of either 1 or 0. Is it possible that if A1=1 then put a timestamp of when the cell A1 went to 1 in B1 and the word "started" in cell c1. when cell A1 goes to 0 then put a timestamp of when A1 went to 0 in B2 then the word "stopped" in cell C2 and so on. I am trying to log uptime and downtime of a peice of equipment. What time the machine stopped and what time it started back 1=on 0=off. I hope that I am not being too much of a Nuisance. and Thank you all again for all your help!!! |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
This code will record a Date & Time stamp in column B "Started" or "Stopped" in column C "Up-Time" or "Down-Time" in column D And the amount of uptime or downtime in column E in HH:MM:SS. The formatting is as little tricky. If you have any problems, I can email you the workbook I tested it on. See example:
Copy this code, replacing the old:
Tom |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|