+ Reply to Thread
Results 1 to 14 of 14

the hours of operation of two device

  1. #1
    Registered User
    Join Date
    09-16-2015
    Location
    dwcw
    MS-Off Ver
    11
    Posts
    7

    the hours of operation of two device

    Hello, I have also attached an excel form where the hours of operation of two pumps are filled in (with several examples of completion). I am interested in how I can calculate the idle hours per day depending on the operation of the two pumps, which represents the interval in which I did not consume energy from the system. Thanks
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: the hours of operation of two device

    I think you'll need to provide more info, what exactly do you need? It could be as simple as adding both totals together and deducting from 24 with a min in there to show zero, such as =MIN(0, total1 + total2)

    but we really need more info before giving a definitive answer. Can you fill out some of the expected results?
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    09-16-2015
    Location
    dwcw
    MS-Off Ver
    11
    Posts
    7

    Re: the hours of operation of two device

    it monitors the operating hours of two pumps, we have one pump marked with HA1 and the second pump marked with HA2. On the column marked with "Pornit", write the time when the pump was started and on the column with "Oprit", write the time when it was stopped, they are recorded in the time interval 0 to 24 hours on a single day. there are several queues because in a day the pumps are turned on several times a day depending on the needs. then it is calculated independently for each cat that worked. Now I want to know how long the pumps stopped in the time interval from 0 am to 24 am, to see how much energy was not consumed from the system. the hours of energy consumption overlap, so it cannot be calculated twice, but must be calculated only as long as both have stopped
    Attached Files Attached Files
    Last edited by zcytunoy; 09-07-2022 at 07:37 AM.

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: the hours of operation of two device

    so to drop this down to its most basic, you're looking for the total number of hours when no pumps were in operation?

    ie if Pump1 was 00:00 to 18:00 and pump2 was 19:00-00:00 then the answer would be 1 (ie 18:00 - 19:00)?

    or am I reading that wrong?

  5. #5
    Registered User
    Join Date
    09-16-2015
    Location
    dwcw
    MS-Off Ver
    11
    Posts
    7

    Re: the hours of operation of two device

    in the captures I posted several operating scenarios. I have also attached the excel file, so I am interested in the hours when energy is not consumed from the system, no matter how the form is filled out. but to be in the time interval 00:00 - 24:00

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: the hours of operation of two device

    Quote Originally Posted by zcytunoy View Post
    in the captures I posted several operating scenarios. I have also attached the excel file, so I am interested in the hours when energy is not consumed from the system, no matter how the form is filled out. but to be in the time interval 00:00 - 24:00
    it may just be me but in none of those examples posted above or the workbook do you give an example of the answer you are expecting, you've shown example data but havent said that in example A I would expect 05:00 hours or example C works out at 3:00 hours.

    Can you confirm that my example above is correct?

    Also, is it possible to have part hours?

  7. #7
    Registered User
    Join Date
    09-16-2015
    Location
    dwcw
    MS-Off Ver
    11
    Posts
    7

    Re: the hours of operation of two device

    is not correct, I explained that it must work only in the time interval of a single day without switching to another day

  8. #8
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: the hours of operation of two device

    Quote Originally Posted by zcytunoy View Post
    is not correct, I explained that it must work only in the time interval of a single day without switching to another day
    My example doesnt switch to another day though?

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,369

    Re: the hours of operation of two device

    I haven't gone through the whole exercise, but whenever I see something like this, I almost always end up looking at an algorithm like:

    1) Extract all time stamps from the form, sort in order from low to high, and include the pump number and on/off toggle information with each time stamp. I usually envision a SMALL() function to extract the time stamps in order, then lookup or equivalent functions to get the pump number and on/off toggle for each time stamp.
    2) Analyze that information to assign either "off to on", "on to off", "stay on", or "stay off" (if needed) to each time stamp. I would expect this to be a nested IF() function. The hard part is getting the logic right.
    3) With each time stamp labeled with one of those three or four labels, then the total time on is simply "sum of the times labeled off to on" minus "sum of times labeled on to off". Total idle time is simply one (or 24:00, if you prefer) minus that result. If it is necessary to see the sexagessimal time, format as [hh]:mm, or you can leave the result in decimal days.

    As indicated, I haven't been through the details. Does that algorithm seem workable? Are you able to put an algorithm like that together? What steps are you uncertain about?
    Last edited by MrShorty; 09-07-2022 at 03:32 PM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  10. #10
    Registered User
    Join Date
    09-16-2015
    Location
    dwcw
    MS-Off Ver
    11
    Posts
    7

    Re: the hours of operation of two device

    Quote Originally Posted by pjwhitfield View Post
    My example doesnt switch to another day though?
    Attachment 795259you have attached an example of how the calculation should result

  11. #11
    Registered User
    Join Date
    09-16-2015
    Location
    dwcw
    MS-Off Ver
    11
    Posts
    7

    Re: the hours of operation of two device

    I partially solved it.
    Please Login or Register  to view this content.
    THANKS

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: the hours of operation of two device

    Solution for users Excel 365 and 2021:

    I completely solved it, please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 09-08-2022 at 03:49 AM. Reason: added "1-" to the <formule>

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: the hours of operation of two device

    Solution for all Excel users with a help table:

    Please try in J1: 00:00:30 and in J2 =J1+1/1440 copy down until J1440.

    Please try in K1 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Solution:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 09-08-2022 at 03:50 AM.

  14. #14
    Registered User
    Join Date
    09-16-2015
    Location
    dwcw
    MS-Off Ver
    11
    Posts
    7

    Re: the hours of operation of two device

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can this be done? Timeline Slicer by hour not day
    By dttodgg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-13-2019, 02:43 AM
  2. Device downtime calculation during performance measure hours
    By tasha2515 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-11-2018, 05:16 PM
  3. [SOLVED] Calculating Downtime During Hours of Operation
    By Puni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2018, 11:00 PM
  4. Hours of Operation Coding
    By milwaukee in forum Excel General
    Replies: 1
    Last Post: 09-14-2015, 03:33 AM
  5. [SOLVED] SLA Counter Formual based on operation hours
    By rpc06 in forum Excel General
    Replies: 7
    Last Post: 09-25-2014, 05:42 AM
  6. [SOLVED] SLA Counter Formual based on operation hours
    By rpc06 in forum Excel General
    Replies: 1
    Last Post: 09-23-2014, 10:15 PM
  7. Replies: 4
    Last Post: 06-10-2013, 10:54 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1