+ Reply to Thread
Results 1 to 9 of 9

Calculate duration between rows based on matching services.

  1. #1
    Registered User
    Join Date
    05-30-2022
    Location
    Wyoming
    MS-Off Ver
    2016
    Posts
    3

    Question Calculate duration between rows based on matching services.

    I have a change log, that whenever a user makes a change to a cell it records the change. For example, my users will change an alarm of a service from null to red (Alarm) and then record why that service went red. Once the service is no longer "red" they delete it. I want to be able to calculate the duration of how long each service was alarming. Please see my attached example.
    Attached Files Attached Files
    Last edited by Thekrikkitwars42; 05-30-2022 at 05:21 AM.

  2. #2
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: Calculate duration between rows based on matching services.

    Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Calculate duration between rows based on matching services.

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    05-30-2022
    Location
    Wyoming
    MS-Off Ver
    2016
    Posts
    3

    SOLVED: Calculate duration between rows based on matching services.

    Hey thanks, this solves my issue. I appreciate it!
    Last edited by Thekrikkitwars42; 05-30-2022 at 05:20 AM. Reason: Solved

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Calculate duration between rows based on matching services.

    OT, but would you by any chance be a Douglas Adams fan? 😉
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Calculate duration between rows based on matching services.

    Just saw the problem was solved.

    Sorry, I couldn't figured out what you want.
    Colud you re-upload the 'Before' and 'After' of the change
    and the result you want.

    Regards.

    PS. Once the service is no longer "red" they delete it.
    what does it's mean?
    Last edited by menem; 05-30-2022 at 05:30 AM. Reason: Seem, my typing is very slow. ^_^

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Calculate duration between rows based on matching services.

    @Thekrikkitwars42: You're welcome. Thanks for the rep.

  8. #8
    Registered User
    Join Date
    05-30-2022
    Location
    Wyoming
    MS-Off Ver
    2016
    Posts
    3

    Re: Calculate duration between rows based on matching services.

    I am a Douglas Adams fan lol.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Calculate duration between rows based on matching services.

    How DID I guess???

    Me, too.

+ 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. calculate end of services gratuity
    By Rashed3030 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-29-2020, 11:37 AM
  2. Calculate cost of service over 5 years, based on services due frequency
    By libra91 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-30-2018, 06:17 AM
  3. [SOLVED] Calculate age based on a matching criterion
    By Gunther Maplethorpe in forum Excel General
    Replies: 3
    Last Post: 08-17-2017, 10:01 AM
  4. Replies: 5
    Last Post: 02-26-2017, 01:12 PM
  5. Have start-stop times & duration, need sub-duration based on range criteria
    By CathTyner in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-23-2016, 01:53 AM
  6. [SOLVED] Formula: To calculate duration between two times, if duration is over 6hours subtract 30mi
    By MattBarnes7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 03:22 PM
  7. Calculate START date based on duration (work hours) and END date
    By kaaver in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-06-2010, 12:21 PM

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