Oct 15 2020 08:43 AM
Oct 15 2020 08:43 AM
I need some help.
To follow that, it would need to be able to be set back or have a spot where I can manually tell it when to start its "off" position counting just in case I am unable to go in on the exact day its out of commission and update the spreadsheet.
Any other ideas for this are more than welcome - I mainly need minimal input or data entry on my end and for it to accumulate ALL days the equipment was not operating. It doesn't have to look fancy or actually be a button or anything like that. I just need it to count. I plan on referencing the final count cell on another sheet that will be for presentation purposes.
Thank y'all so much for your help!
Oct 15 2020 11:00 AM
Speaking in the abstract, which is about all I can do at this point, I think what you're asking is fairly straightforward.
If you'd like something less abstract, it would help a lot (A LOT!) if you posted a copy, or some facsimile thereof, of the specific spreadsheet you're working with, showing how you have your data organized. Also let us know which version of Excel you're working with; there are some features in the newest release of Excel that might be relevant, so it would be good to know if that's what you have.
Oct 15 2020 12:47 PM
@mathetes Awesome! that's good to hear. I have attached my file. I have a reference sheet where I picture this counter to be placed (highlighted in yellow for you) and I planned for the total count days to be referenced from there onto the two Data Base sheets as needed for Calendar and Operating Days. Those two pages are my data input pages. That's where 99% of my data is inputted. The other Rig specific sheets are linked to the data base pages and are meant to just be refreshed and printed only.
Any help or recommendations to rework the sheets as needed to make the counter work or formula's to work better I am willing to look into and see how it fits overall.
Oct 15 2020 02:27 PMSolution
@TSawyer1226 So the only way to do this is with a macro. i created a sheet with checkboxes that can be clicked ON and OFF to signify the machine is ON or OFF. Each time it will log that time onto an ongoing list of ON and OFF times. I then have a table to calculate the total ON and total OFF times. Note that those total times are updated when a change triggers a new calculation so if the machine is presently OFF that formula updates the total OFF time based on the time right now. You can change the time format to be days instead (i.e. integer numbers would work to signify days). I am also attaching a drawing on how I added a 2nd rig so you can add the 3rd, 4th, etc...
Hope this helps you.
Oct 16 2020 09:07 AM
@mtarler I actually do have a small question (I know, that didn't take very long lol). Where would I go or what do I click to turn the macro off? In the case something gets decommissioned I would like for it just stop counting without me losing all the data it had recorded up to that point.
Oct 16 2020 09:44 AM
@TSawyer1226 Just delete the checkbox. No checkbox, no call to the macro. Note that I only wrote 1 macro (to rule them all, lol). So the macro will get the NAME of the checkbox (you can find and change it in the box to the left of the equation editor box) calling it and use that to know which list to update. So if/when you copy the checkbox you much change that name and the CAPTION (the text next to the checkbox) or else when you click that checkbox it will add the timestamp on the wrong list.
Nov 05 2020 11:35 AM
@TSawyer1226 Hello again. I have updated your newest sheet with a couple tweaks I think you will like. I deleted all the redundant buttons (nice macros btw). I reduced to 1 button per row. I 'hide' the timestamp behind the button and then add the difference between NOW and that timestamp whenever it is changed from Operating to Not Operating. Note that it only updates the Operating Count (Hidden) when you click the button so I added a 'running clock' condition to the Operation Days column so if the button is 'Operating' it will update the 'Operating Days' status on each refresh (FYI - having many rows can cause it to lag as it has to update every cell in the row on every entry/refresh anywhere on the page). I did not try to make the button different colors but the text does change
BTW - I responded here so that your new request can stay 'unanswered' and maybe get another solution from another volunteer.
best of luck.
Nov 06 2020 11:48 AM
@mtarler Hello Hello. I seriously hope you get paid to be this freaking good. I just tested it out over the last day and I believe this is it! (I am totally doing a happy dance right now lol). Thank you again for all your help, the changes you made look wonderful and they do what I need them to.
P.S I am glad you like the macros lol I am still a noob when it comes to that stuff but glad I was in the right ballpark.
Nov 06 2020 11:52 AM
@TSawyer1226 You are very welcome and very happy it is helpful. No I/we are just volunteers here and this isn't even directly related to my real job (I use excel but just like you or anyone else in business. i.e. not a consultant). My payment is knowing I helped someone and seeing my Likes and Best Responses tick up