Comments on: Excel time format: 12/24 hour, custom, default

Microsoft Excel has a handful of time features and knowing them in depth can save you a lot of time. To leverage powerful time functions, it helps to know how Excel stores times. Continue reading

Comments page 4. Total comments: 271

  1. total duty Time - total Work Time
    216:00:00 212:16:00 -3:44 this answer ok
    but
    i use same formula
    216:00:00 182:19:00 -9:41 this answer wrong
    why
    this answer -33:41

  2. 216:00:00 212:16:00 -3:44 ok
    but
    same formula
    216:00:00 182:19:00 -9:41 wrong -33:41
    =IF(H7-G7>0, H7-G7, TEXT(ABS(H7-G7),"-h:mm"))

  3. Hello i wanna do a time format that counts down days till expiration and the way its set up is there is the date format in each row is it possible to make 1 date show and each column follow that date with multiple items and different expiration dates?

  4. Hello - Is there a source that shows how to create a formula that calculates the "duration" it takes someone to do something?
    Ex. All I have are "start time" in one column, and in the next "end time".
    Example, one column says the time that Jeff texted me = 07/10/2020 at 12:00 p.m.
    In the other column, it shows my response time to Jeff being the next day on 07/11/2020 at 06:00 p.m.
    How can I create a formula that would automatically give me "30 hours" - since the response time took thirty hours?

    1. Hello Isabella!
       Subtract the start time from the end time. Then apply a custom time format. To be able to show more than 24 hours in a cell, please use this time format: "37:30:55". You can find it in the list of Excel time formats.

  5. How can I do 23:50 - 00:00? For example if its 23:50 on a tuesday then 00:00 on a wednesday?

    1. Hello Rebecca!
      If I understand your task correctly, if the time difference is negative, add 1 day (24 hours)

      =IF(B3>B1,B1-B3+1,B1-B3)

      To the start time you need to add 1 day.
      I hope it’ll be helpful.

  6. I am entering 10.40 and the cell is changing it to 9.36 am automatically, please share why?

    1. Hello!
      Date is stored in Excel as a number. 10.40 is 1/10/1900 09:36:00. To get the time, you need to enter it correctly. Use a colon. (9:36:00).

  7. I have sum all my employee working house with =SUM(C2:C26), I got a total of 810:07 hours (format [h]:mm) When I tried to change the formatting to
    dd "day," h: "hours," mm "minutes. I got 2 days, 18 hours 07 minutes which is wrong! How to fix that?
    Thanks

    1. Hello Khalid!
      The date format in Excel cannot show the number of days greater than 31. Therefore, try to use such a custom time format

      m"month," d"day," hh"hours," mm"minutes"

  8. Hi how could i calculate the Night duty hrs which is inside the total hours & btn 22 to 06
    Id of Crew|Name |In |Out |D.Hrs|Night D.Hrs
    N10001 |AAA |05-06-2020 16:00|05-06-2020 23:00|07:00|01:00 (btn 22 to 06)
    N10002 |BBB |06-06-2020 23:00|07-06-2020 08:00|09:00|08:00 (btn 22 to 06)
    N10006 |XYX |08-06-2020 03:00|09-06-2020 23:30|20:30|03:00 (btn 22 to 06)
    N10010 |LMN |08-06-2020 21:00|08-06-2020 23:45|02:45|01:45 (btn 22 to 06)

  9. Hi how could i calculate the total time lapse i tried =sum(f2:f4) but its not working

  10. Can Excel actually figure out the time of 1:75 is actually 135 minutes?

  11. Can Excel actually convert the time from 1:45 to 1.75 through a formula?

  12. I want to add up hours for an employee and then multiply those hours by her rate to get total cost spent. How can I do this if the hour is in this format hh:mm:ss? The formula needs a whole number like 1.75 rather than 1:45.

    1. Hello!
      To convert time to number of hours, and minutes to decimal parts of an hour, use the formula

      =HOUR(D1)+MINUTE(D1)/60

      Hope this is what you need.

  13. I would like to record 24h00 in Excel 2013

    1. Hello Seleko!
      Please go to Format Cells, choose Number -> Custom Format and set
      [hh]:mm:ss;@

      I hope this will help, otherwise please do not hesitate to contact me anytime.

  14. Hello!
    Any one please help!
    i need to assign formula, if employee works after 9:00pm i need give one food allowance.

    1. Hello Bharath!
      Supposing your end time is in B2, the formula below will be the one for you:
      =IF(B2 < TIME(21,0,0), B2 - TIME(21,0,0) + 1,B2 - TIME(21,0,0))

  15. I have custom formatted cells with 00/:00 enable simple entry just directly key in number for instant 830 will display 8:30am,but when come to calculating the duration it display hh:mm, may I know how can I get it converted to single minute unit please.

  16. Hello,
    Is there any format that will make my time inputs in PM only. SO if I type in 5:00 it will automatically pick it up as PM and not AM.

  17. Hi, I want to record only time of a data entry is it possible to do so?

  18. I am trying to input hours in one column for example input and subtract
    in one column i have 24:13 minutes to be deducted from 113:45 minutes when i input 24:13 it changes to 0:13 also the current formula i use is =(C3-B4) where C3 is 113:45 and B4 is 24:13

    Thanks

  19. Hi,

    I've a doubt, i want to compare two columns in Time format and highlight the one that exceeded. I can only able to compare it, but I would like to know how to highlight it?

    For example:
    Shift time Login Time Status
    2:30 2:25 Met
    2:30 2:29 Met
    2:30 2:45 NotMet
    2:30 2:15 Met
    2:30 3:15 NotMet
    2:30 2:50 NotMet
    I can compare whether the condition is met or not, but how to highlight the cells in 2nd column automatically.

  20. Hi,
    How can I just display time instead of date & time in the cell. As I need 22:00 but the cell will show 14/05/1903 10:00:00pm.

  21. i am trying to create a timesheet that will limit the amount of "time worked" in a cell to 12 hours, because everything over 12 hours is considered overtime i was fairly certain my formula would be =IF ((C1-B1, "h:mm:ss") *24) > 12 , 12 ,(C382-B382, "h:mm:ss") but i keep getting a #ERROR, i have tried multiple different variations and cant seem to get this to work. any suggestions?

  22. I need a small help that I am unable to convert hours into seconds as I have been trying 7:00/ 1440 for this I am getting a perfect answer but as coming to 6:30/1440 the calculator answer and this answer is not matching can you help me with this ?

  23. How can I convert days, hours, minutes, seconds to time format Hh:mm:ss with a formula? The data in excel was extracted from a database and not formatted as an actual time format.
    Example: Convert 4 days, 22 hours, 36 minutes, 58 seconds to 118:36:58

  24. hi madam,
    I have one doubt , i am key in excel my workers overtime day shift time in 6.00 out 19.30 i use formula =((19.30-06.00)-9) 4.30 , 9 meaning company hours the rest overtime this is good result , but night shift how to use formula, in 18.00 out 08.00 , please madam can you explain me formula.

  25. Hi Svetlana,
    Good day!
    Could you please let me know how to convert 1/2/1900 2:57:10 AM data format to HH:MM:SS. I have an excel full of different types of values (12:15:34 AM, 1/2/1900 2:57:10 AM). Any help would be appreciated. Thanks

  26. IF 17:30PM-9:00AM=8:30 HOURS OR 16:30PM-9:30AM=7HOURS THAN HOW TO I KNOW 31 DAYS CALCULATION IN EXCEL

  27. hi guys,

    i need to know in my scenario..... how to show the result when its get mature
    like... i have some checks due in next month which i want that when the date come, it automatically appear in my another maintained sheet.although, the date and all details with despcrition explained in first sheet but in other sheet i need their appearance
    so i need to know how these details appear at the time of maturity

    appreciate your response back

  28. Hi team, I want to enter exact time, using Ctrl+Shift+; but it omits seconds, only shows hours and minutes (in hh:mm:ss format, i.e., for example: 11:34:00 against the timing of 11:34:45) please help.

  29. Hi i would like to extract a data of the last 24 hours in my data base. which means i have to use intervals. i would like to use Now function to return me the last 24 hours data from now.
    these values will be updating hourly as the data base keeps changing.

    Ex. when i want to extract data for the last 30 days i use today function for the time interval.
    Start: today-32
    end: today
    this gives me 32 data and will always change the last day as time goes.

    i would like to use similar method for hourly data extraction using NOW Function.
    Start:
    End: NOW

    HOW CAN I GET THE STARTING TIME USING NOW'S FUNCTION AS I EXPLAINED WITH TODAY'S FUNCTION

  30. Have a column to check if timesheet add-up correct. Am getting a ##### error sometimes and othertimes get what 0:00 result when using formula: =IF(G21="","",G21-SUM(I21:P21))
    G21 is the sum of start, end, & breaks times. Columns I-P are the division of total work hours (G21). The problematic QC formula is the check if G21 and the sum of projects are equal & equal 0:00 hours. Note: All cells are in custom format: [h]:mm;@
    EXAMPLE:
    cell G21 formula: =IF(D20="","",($E20-$D20)-F20)
    cell G21 result: 8:30
    cells I21-P21 values: 0:30/1:00/1:30/0:30/1:00/1:30/2:00/0:30
    cell I21-P21 result: 8:30
    cell Q21 checking formula: =IF(G21="","",G21-SUM(I21:P21))
    Sometimes given Q21 result of 0:00 and other times #######

  31. I need to split date and time in two different cells from the below format
    2019-06-21 18.36.30

  32. Please can you tell me the easiest way to insert a static timestamp including seconds in a cell. If I use 'Ctrl + Shift + ;', I get say 23:35, but I need the seconds to appear too, e.g. 23:35:33. Please can you help? Thank you.

  33. I am doing a Work Project where we need to calculate minutes used for activity, we use "=(P9-O9)*1440" but when going 23:00-00:10 instead of 70 it gives us -1370 Any tips?

    1. Incase anyone comes across this same problem, you just have to add the Date before the time to solve it.

  34. Hi!!
    Im trying to use the =today()+1 formula, i need it to updated the date when i open the file but i need it to stay the same date (not update) at midnight

  35. I want to determine if the current time is between two preset times. Let's say I want to know if the current time is between 10:00 (in A1) and 11:00 (in A2). If it is currently 10:30 and I enter "=now()>A1", I get a return of "TRUE". But if I then enter "=now()<A2", I get "FALSE". Why is that?

  36. How do I add to this formula to start calculating time-sheets Where the first cell,first column is A1 (in time),second column is B1(out time) third column is C1(working hours), enter this in the first cell, fourth column:
    =IF(C1>9,9,C1)
    Nine is should be time format
    I need fourth column (normal working hours it should blow the nine) and fifth column(it is OT hours C1-D1)
    Noted all are Time format please help me....

  37. Hi, I am trying to calculate how much time it took someone to close a ticket. The report that I get out of Service pro shows the dates like this:

    Ticket # Time Logged Time Closed
    12/28/2018 1:50 PM 1/7/2019 8:23 AM

    I need to calculate the difference between the 2 time periods so that I can then average this amongst all of the tickets that were closed. Can anyone help me?

    1. Let's say 12/28/2018 is in A1 and 1/7/2019 is in A2 and the number of tickets (let's it is 400) is in A3. =((A2-A1)*24+INT((((A2-A1)*24)-INT((A2-A1)*24))*60))/A3 will give you 0.668875, which is the number of minutes per ticket. Multiplying that number by 60 gives you 40.1325 seconds per ticket, on average.

  38. I'm trying to convert the cells with a text format 5 days, 6 hours, 0 minutes and 0 seconds to
    custom format like d hh:mm:ss in order to complete an in cell calculation. How can this be done ?

  39. can anyone say me how i can convert 0:00 to 00:00 until to 9.

  40. Hi

    can you help me in speed data entry getting info by phone
    0730
    0835
    0955
    1045
    1515
    if my data entry like above i need this to convert to time or else need to put ":" in mid (I used left and right formula but i want the same cell value directly change to time format)
    is there any formatting or other option to support my requirement please.

    Thanks in advance

  41. hi i have 79 hrs 30 mins which is written as 1/3/1900 7:00:00 AM on the dialog box ....now i want to convert it into 79.30...
    how can i do this?? please help urgent

  42. Please guide me to get the difference between two time stamps in the following format
    20-09-2018 13:00:43 20-09-2018 15:30:31

  43. Hi I am having a doubt in excel, I am having a table with 4 columns in which two fields are date field, If i enter a value in first column the current date and time should be entered in the second column(date column), is there any way to be done for this.'Thanks in Advance

    1. Ram:
      Where the first cell, first column is A1, enter this in the first cell, second column:
      =IF(A1"",NOW(),"Empty")
      It says: If A1 is not empty enter current date, otherwise enter "Empty".
      Format the first cell, second column as DATE with the time included.
      You can enter any text you deem appropriate in place of "Empty".

  44. I am trying to edit a basic time card in Excel made by others. I put the time in: ie: Cell G:25, I want to write: 0800, and it fill in as 8:00, then Cell G:26 write 1300, and it fill 1:00, Cell G:27 write 1330, fill 1:30, Cell G:28 1630, fill 4:30. Then Cell G:29 totals how many hours I worked that day. 8.00. And finally in Cell M:29 a total of how many hours were worked that day.
    I apologize if I don't make sense, but any help would be amazing!
    Thank you.

  45. 7:46 7:46:00 AM
    1:05:32 1:05:32 AM
    CELL SHOWING 51:45:00 BUT INSIDE CELL 02-01-1900 3:45:00 AM

    THIS IS EXPORT SITUATION FROM WEBSITE REPORT ACTUALLY THIS IS MINUTES AND SECONDS 51:45

  46. Do I need formul to subtract time, like 88657:53 - 745563:32
    Or do I have to change time in to numbers?

  47. How do I add to this formula to start calculating time after a 24hr allotment.... I want to start calculating after the first 24hrs - HELP!!

    =IF(INT(B2-A2)>0, INT(B2-A2) & " days, ","") & IF(HOUR(B2-A2)>0, HOUR(B2-A2) & " hours, ","") & IF(MINUTE(B2-A2)>0, MINUTE(B2-A2) & " minutes and ","") & IF(SECOND(B2-A2)>0, SECOND(B2-A2) & " seconds","")

  48. how can you get the time elapsed in h:mm from to date & times. example( 12/30/2017 18:16 / 1/2/2018 4:39. What is the time elapsed between these two?

  49. DOWN_DATE DOWN_TIME CLEARED_DATE CLEARED_TIME
    15.12.2017 5:27:04 15.12.2017 8:18:38
    14.12.2017 18:34:24 14.12.2017 20:56:45
    30.12.2017 12:17:42 30.12.2017 13:28:11
    13.12.2017 7:11:34 14.12.2017 8:53:06
    15.12.2017 5:27:14 15.12.2017 8:18:12

    how to calculate diffrence of down duration .in excel 13.12.2017 7:11:34 -14.12.2017 8:53:06 showing as 1/1/1900 1:41:32 AM .which is not correct .tell me correct formula pl

    1. Hello,

      If I understand your task correctly, please try the following formula:

      =ROUNDDOWN(B1-A1,0) & " days " & TEXT(TIME(HOUR(B1-A1),MINUTE(B1-A1),SECOND(B1-A1)), "hh:mm:ss")

      Where cell A1 is “13.12.2017 7:11:34”, cell B1 is “14.12.2017 8:53:06”

      Hope this will help you!

  50. Hi guys. I need help please...
    I need to calculate the number of lates and undertime using this details
    B2 - date of time in/out
    C2 - time in/out
    E2 - work schedule in date
    F2 - time schedule
    Thanks guys hope for you immediate response.

    1. Hello,

      For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to support@ablebits.com. Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
      Please also don't forget to include the link to this comment into your email.

      I'll look into your task and try to help.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)