+ Reply to Thread
Results 1 to 3 of 3

Finding and displaying start and end time of a cycle

  1. #1
    Registered User
    Join Date
    11-22-2022
    Location
    India
    MS-Off Ver
    MS OFFICE 2019
    Posts
    2

    Finding and displaying start and end time of a cycle

    Hi
    I'm doing data analysis for a battery. I need to count the number of charging/discharging/idle cycles and also find the corresponding timestamp when a charging/discharging/idle cycle begins and ends.

    Using help from the forum I was able to find the number of cycles.

    DC --> Discharging (current<0)
    I --> Idle (current=0)
    C --> Charging (current>0)

    For example:
    From time 00:05 to 00:13, the current value is positive, which means battery is charging. So I need to display:
    charging_cycle_1_start = 00:05
    cycle_charging_1_end = 00:13

    Similarly next charging cycle is from 00:41 to 01:00. So I need to show:
    charging_cycle_2_start = 00:41
    cycle_charging_2_end = 01:00

    cycle count test file.xlsx

    I'm trying to solve this in excel first but my end goal is to write a python code. I was hoping to solve in excel to understand the basic idea of how it will work.

    Please help.
    Regards

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

    Re: Finding and displaying start and end time of a cycle

    Here is an option for getting the charging cycles:

    Please try and confirm formula with CTRL+SHIFT+ENTER
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 11-22-2022 at 03:47 AM.

  3. #3
    Registered User
    Join Date
    11-22-2022
    Location
    India
    MS-Off Ver
    MS OFFICE 2019
    Posts
    2

    Re: Finding and displaying start and end time of a cycle

    Thanks.
    When I opened your file it showed me some values but when I clicked on enable editing I got error on the formula. I tried CTRL+SHIFT+ENTER as well but still got the error.
    Is there something I need to enable for this formula to work?

    This something that I tried yesterday. Very basic logic but I was able to get cycle start and end time. But this won't do it for me. Your formula is what I need.

    cycle count test file_1.xlsx

    Regards

+ 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. Calculating Cycle Time and Avg Cycle Time based on Date/Time and Raw Data Column
    By AggiePfaelzer in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 02-26-2022, 09:14 AM
  2. [SOLVED] populate cells based on a start year and cycle
    By Seattlites in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-06-2020, 11:50 AM
  3. Replies: 2
    Last Post: 08-25-2017, 03:46 AM
  4. Replies: 2
    Last Post: 12-16-2015, 06:25 AM
  5. Replies: 19
    Last Post: 09-16-2009, 07:22 PM
  6. Replies: 15
    Last Post: 09-16-2009, 12:02 PM
  7. [SOLVED] Finding concurrent events from a list with a start and an end time
    By Dave at tch in forum Excel General
    Replies: 3
    Last Post: 01-13-2006, 12:10 PM

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