+ Reply to Thread
Results 1 to 5 of 5

Minutes Calculation

  1. #1
    Registered User
    Join Date
    04-15-2010
    Location
    Bangalore
    MS-Off Ver
    2019
    Posts
    57

    Minutes Calculation

    Hi All,

    I would like to derive time taken to resolve a ticket. For example if the ticket has been resolved within 5 minutes, i would be posted as "<=05 Mins", based on difference of datetime between two date time field (start time and end time) of ticket.

    Sample Data:, excel file is attached.


    Other values should be populated based on this table below.

    <=05 Mins.
    <=10 Mins.
    <=15 Mins.
    <=20 Mins.
    <=25 Mins.
    <=30 Mins.
    <=1 hour.
    <=2 hours.
    <=4 hours.
    <=8 hours.
    <=24 hours.
    <=2 days.
    <=5 days.
    <=7 days.
    <=15 days.
    <=31 days.
    >=One Month.

    Current Formula:

    =IF(Z30053="NA","NA",
    IF(Z30053="Open","Open",IF(Z30053<>"Open",
    IF(AND(INT((Z30053-Y30053)*1440)>0,(INT((Z30053-Y30053)*1440)<=5)),"<=05 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>6,(INT((Z30053-Y30053)*1440)<=10)),"<=10 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>11,(INT((Z30053-Y30053)*1440)<=15)),"<=15 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>16,(INT((Z30053-Y30053)*1440)<=20)),"<=20 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>21,(INT((Z30053-Y30053)*1440)<=20)),"<=25 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>26,(INT((Z30053-Y30053)*1440)<=30)),"<=30 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>31,(INT((Z30053-Y30053)*1440)<=45)),"<=45 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>46,(INT((Z30053-Y30053)*1440)<=60)),"<=60 Mins",
    IF(AND(INT((Z30053-Y30053)*1440)>61,(INT((Z30053-Y30053)*1440)<=120)),"<=2 hours",
    IF(AND(INT((Z30053-Y30053)*1440)>121,(INT((Z30053-Y30053)*1440)<=240)),"<=4 hours",
    IF(AND(INT((Z30053-Y30053)*1440)>241,(INT((Z30053-Y30053)*1440)<=480)),"<=8 hours",
    "More than 1 Day"))))))))))))))

    Please let me know if this has better formula?

    Kindest Regards,
    VCP Muthukrsihna
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Minutes Calculation

    To start with, I would put the time calc in it's own cell and then just reference it for the rest of the cal.

    Also, start with testing for the largest 1st, then work your way down to the smallest. That way, you dont need to test for > this < that all the time
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-29-2024
    Location
    EGYPT - Cairo
    MS-Off Ver
    MS365
    Posts
    88

    Re: Minutes Calculation

    Quote Originally Posted by mvcp007 View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    • In your attached file, which cell should include this formula?
    • does ALM mean application lifecycle management?
    • Ack Time (in Mins) = Ack. Time - Alm. Time, right? if I understand it correctly, please check if this correctly calculated:
      A
      B
      D
      G
      H
      I
      1
      Alm. Time Ack. Time Ack Time (in Mins) Ack Time (in Mins) Differences
      2
      04/09/2024 11:56 PM
      04/09/2024 11:59 PM
      2
      3
      1
      3
      NA NA NA
      #VALUE!
      4
      04/09/2024 08:36 AM
      04/09/2024 08:45 AM
      9
      9
      5
      NA NA NA
      #VALUE!
      6
      NA NA NA
      #VALUE!
      7
      04/09/2024 10:00 PM
      04/09/2024 10:00 PM
      0
      0
      8
      NA NA NA
      #VALUE!
      9
      NA NA NA
      #VALUE!
      10
      04/09/2024 01:35 PM
      04/09/2024 01:38 PM
      3
      3
      11
      04/04/2022 01:02 PM
      04/04/2022 01:06 PM
      3
      4
      1
      12
      04/10/2024 09:13 AM
      04/10/2024 09:16 AM
      2
      3
      1
      13
      04/09/2024 04:35 PM
      04/09/2024 04:39 PM
      4
      4
      14
      NA NA NA
      #VALUE!
      15
      NA NA NA
      #VALUE!
      16
      04/09/2024 06:40 PM
      04/09/2024 06:44 PM
      3
      4
      1
      17
      04/09/2024 07:31 PM
      04/09/2024 07:36 PM
      4
      5
      1
      18
      04/09/2024 07:31 PM
      04/09/2024 07:36 PM
      4
      5
      1
      19
      NA NA NA
      #VALUE!
      Sheet: Sheet1 (2)
      Because there are some differences in yellow cells.
    Last edited by MohamedGadAllah; 04-11-2024 at 01:02 AM.
    Thank,
    Mohamed GadAllah

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

    Re: Minutes Calculation

    Please try in F2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-15-2010
    Location
    Bangalore
    MS-Off Ver
    2019
    Posts
    57

    Re: Minutes Calculation

    ALM means Alarm
    ACK means Acknowledgement

+ 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. [SOLVED] Time-Calculation-HOUR and Minutes
    By majidsiddique in forum Excel General
    Replies: 4
    Last Post: 01-11-2020, 05:32 AM
  2. [SOLVED] Wrong calculation [h]:mm:ss into minutes
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2017, 05:31 AM
  3. [SOLVED] Time calculation by adding minutes
    By lavan_joy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2013, 08:27 AM
  4. Hours & minutes calculation
    By jimar in forum Excel General
    Replies: 1
    Last Post: 08-07-2006, 11:25 AM
  5. [SOLVED] calculation with minutes
    By Paulina in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2005, 08:05 AM
  6. [SOLVED] Time Calculation in Minutes only ?
    By pgcam in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-23-2005, 06:06 AM
  7. [SOLVED] Time Calculation in Minutes only ?
    By pgcam in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2005, 03:06 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