I need to program custom stopwatch (HH:MM:SS) in excel. There are simple stopwatch examples on the Internet (using VBA) but I do not know how to edit them to acomplish what i need. If someone could solve this for me so it can run on PC and Mac (compatible VBA, xlsm) id be forever gratefull. Any Excel Pro who would take on the challenge. Thanks
Ive got 2 activities. Activity A (e.g. squating) and Activity B (e.g. resting).
Ive got a trainee who switches between Activity A and Activity B when the trainer in the room shouts "NOW"
The trainer randomly shouts "NOW" and the trainee switches between Activity A and Activity B everytime he/she hears a command.
After some time, an unspecified time (e.g. half-hour) its over, and I need to know how much time a person spent in Activity A and how much time he spent in Activity B.
So it's a stopwatch that SWITCHES between two counters at a press of a button.
SEE THE ATTACHED PICTURE FOR ILLUSTRATION:
1) Press START - TIME A starts from zero and runs and runs and runs
2) Press SWITCH - TIME A pauses and TIME B starts from zero and runs and runs and runs
3) Press SWITCH - TIME B pauses and TIME A continues from where it was left
and so on, all the time - Pressing SWITCH does not zero/reset the counters, it only PAUSES currently running counter and UNPAUSE the other counter
Alternating many times between activities, the counters keep adding and at the end (for example after 30 minutes) i see that trainee spent 18:22 in Activity A and 11:38 in Activity B. During those 30 minutes the trainer shouted "NOW" 50 times, so did i press SWITCH 50 times.
The HOLD pauses the currently running counter without starting the other counter, the CONTINUE unpauses the last active counter
The RESET button resets both counters to zero
The START key always starts TIME A (START button is only used at begining of measurement after RESET)
THANKS
https://www.excelforum.com/attachmen...1&d=1504736517
Attached is a ILLUSTARTIVE OUTLINE jpg
Bookmarks