How to Add or Subtract Time in Excel - Calculate Hours and Minutes for Accurate Timekeeping

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ค. 2024
  • How to Add and Subtract Time in Excel for accurate timekeeping and data analysis. Learn how to perform time calculations in Excel by understanding how Excel formats time and how to use the TIME function. Whether you need to add time to a particular timestamp, or subtract time to determine elapsed time, Excel has built-in functions and formats that make these calculations easy. We'll cover the basics of working with time in Excel, including formatting time values, using the SUM functions, and applying time formulas to entire columns. By the end of this video, you'll be able to confidently perform time calculations in Excel and save yourself valuable time when working with large datasets.
    Time calculations are a common task in data analysis, and Excel offers a variety of tools to help you perform them quickly and accurately. Whether you're tracking project timelines, calculating employee hours, or working with data that involves time-based measurements, being able to add and subtract time in Excel can save you a lot of time and effort. In this video, we'll cover some essential Excel functions and formulas that you can use to perform time calculations with ease.
    In this video, we use the format code [h]:mm;@ as a custom time format that displays time values in hours and minutes format with the total number of hours exceeding 24. The square brackets around "h" indicate that the hours should be displayed as a number, including any hours exceeding 24, and the semicolon (;) separates the positive and negative formatting. The "@", is optional and indicates that any text entered into the cell will be displayed as is.
    📺 Watch Next - Create Annual Dynamic Payroll Calendar in Excel: • Create A Calendar In E...
    KEYWORDS: @SharonSmith #msexcel #exceltips #exceltipstricks
    Mastering Time Calculations in Excel, how to add time in excel, how to subtract time in excel, how to add hours and minutes in excel, Excel Tutorial, Excel tips and tricks, how to track time in Excel, how to create a timesheet in Excel, how to calculate a timesheet in Excel, how to create a time calculator in Excel, TIME function in Excel, TIME (hours,minutes,seconds), [h]:mm, Excel time formatting
    TIMESTAMPS ⏰
    00:00 How to Calculate Time in Excel
    00:20 How to Add Time in Excel
    03:12 How to Subtract Time in Excel
    05:42 Calculate Timesheet in Excel
    __________
    CONNECT WITH ME 📎
    Visit my website: www.sharonsmithhr.com for more information, tools and resources.
    LinkedIn: / sharonsmithhr
    Twitter: / sharonsmithhr
    Instagram: / sharonsmithlearn
    __________
    GEAR
    🎙 Blue Yeti USB Microphone: amzn.to/2W4SbzV (Great for recording professional sounding audio for your videos!)
    🖱 Silent Mouse: amzn.to/3pxpc25 (This is a really cool mouse!)
    🎥 Screen Recording Software: techsmith.z6rjha.net/NZG5b
    📗 Green Screen: amzn.to/2DnHsY2
    📸 Camera: amzn.to/39KvpQA
    🔌 Live Stream Tool: amzn.to/2VFJyID (Turns your DSLR into a top notch webcam)
    RESOURCES
    ✏️ JotForm: www.jotform.com/pricing/?utm_...
    📑 Wondershare PDFelement (PDF Editor): bit.ly/31QEkA8
    💻 PresenterMedia: shareasale.com/r.cfm?b=417324...
    Some links included here are affiliate links. If you click on these links and make a purchase, I may earn a small commission at no additional cost to you. Thanks for supporting this channel!
    __________
    TEMPLATES
    Check out my helpful list of templates available for purchase: www.etsy.com/listing/87584666...
    Thank you for supporting my channel!
    (Scroll down for a link to my free resources)
    __________
    NOTE: If you found this content helpful, please consider donating to my channel from this PayPal link: www.paypal.com/cgi-bin/webscr.... Your donation, no matter what amount, is greatly appreciated and goes towards producing content that enhances your productivity and elevates your skills. Thanks for supporting this channel!
    __________
    FREE DOWNLOADS
    ✦ Visit mailchi.mp/6a0859ea0844/sharo... to sign-up for my e-mail list and get FREE downloads of super helpful spreadsheet formulas, dashboards and Org Chart templates for HR professionals.
    __________
    PLAYLISTS:
    ➤ Jotform Tutorials: • Jotform Tutorials
    ➤Creating Fillable Forms: • How To Create A Fillab...
    ➤ Excel Tutorials for HR: • Microsoft Excel Tutorials
    ➤ Excel Quickies (Around 2 Minutes): • Excel Tips & Tricks
    ➤ Word Tutorials for HR: • Microsoft Word Tutorials

ความคิดเห็น • 55

  • @wretchedrichard2955
    @wretchedrichard2955 5 หลายเดือนก่อน +2

    Thank you SO much, I just spent hours looking through articles and other u tube video's getting confused. Then I stumbled across your channel which made my day. You're a great teacher, as the tutorial was concise, informative, and right on point. It's five out of five Gold Stars of greatness from me.

    • @SharonSmith
      @SharonSmith  5 หลายเดือนก่อน

      Oh, thank you so much! That is so nice of you. Thanks for taking time to leave a nice comment. I really appreciate it! Glad you found my Channel and that the videos are helpful to you. Take care!

  • @joseerichard8250
    @joseerichard8250 2 หลายเดือนก่อน +1

    I love the way you explained this. So simple! Thank you!

    • @SharonSmith
      @SharonSmith  2 หลายเดือนก่อน

      I'm so glad you found it helpful! Thanks for watching!

  • @sojeivjo
    @sojeivjo 7 หลายเดือนก่อน +1

    Hi Shannon. I thank you for explaining the last part. I always had a problem with that.

    • @SharonSmith
      @SharonSmith  7 หลายเดือนก่อน

      Glad to help! Thanks for watching!

  • @daylematthews
    @daylematthews 11 หลายเดือนก่อน

    What a great explanation. Thanks!!

    • @SharonSmith
      @SharonSmith  11 หลายเดือนก่อน

      Glad you found it helpful! Thanks for watching!

  • @nfortimothy3131
    @nfortimothy3131 6 หลายเดือนก่อน +1

    Thanks a lot. your explanations are so explicit

    • @SharonSmith
      @SharonSmith  6 หลายเดือนก่อน

      Glad you found it helpful! Thanks for watching!

  • @pencilpainters
    @pencilpainters 3 หลายเดือนก่อน +1

    i am glad i found this video……..subscribed….awesome explanation. Thank you

    • @SharonSmith
      @SharonSmith  3 หลายเดือนก่อน

      I'm so glad you found this video helpful! Thanks for watching and for subscribing to my Channel! I appreciate it. Take care!

  • @prashia
    @prashia ปีที่แล้ว +1

    This chanel is needs more viewers. I learned a lot from her tutorial.

    • @SharonSmith
      @SharonSmith  ปีที่แล้ว

      Thank you so much! I'm glad you learned a lot from my videos. Yes, I hope I can get more views too!! Thank you!

  • @kennam5136
    @kennam5136 3 หลายเดือนก่อน +1

    Thank you very much, very clean and easy to follow.

    • @SharonSmith
      @SharonSmith  2 หลายเดือนก่อน

      Glad you found it helpful! Thanks for watching!

  • @BrendaSisneros
    @BrendaSisneros 3 หลายเดือนก่อน

    Love it! Thank you!

    • @SharonSmith
      @SharonSmith  2 หลายเดือนก่อน

      Glad to help! Thanks for watching!

  • @yasirshabar9447
    @yasirshabar9447 3 หลายเดือนก่อน +1

    That was very helpful, thank you so much

    • @SharonSmith
      @SharonSmith  3 หลายเดือนก่อน

      Glad to help! Thanks for watching!

  • @EV-dh2ow
    @EV-dh2ow 4 หลายเดือนก่อน

    ❤ thanks . I’m looking forward for calculation of OT

    • @SharonSmith
      @SharonSmith  4 หลายเดือนก่อน

      Awesome! Thanks for watching! Glad it was helpful.

  • @proffacttv
    @proffacttv 3 หลายเดือนก่อน +1

    Really Helpful

    • @SharonSmith
      @SharonSmith  3 หลายเดือนก่อน

      Glad to help! Thanks for watching!

  • @tome1964
    @tome1964 4 หลายเดือนก่อน

    Hi Sharon, thank you for the great explanation. I was wondering< if you have per say; a flight arrival time and a hotel check-in time and you want to calculate if you'll arrive early or late for the check-in, how you do that? (when I tried, negative times showed the dreaded hashtags) :)

  • @prince4x4
    @prince4x4 16 วันที่ผ่านมา +1

    Thanks for your share

    • @SharonSmith
      @SharonSmith  16 วันที่ผ่านมา

      Thanks for watching!

  • @jbxinc936
    @jbxinc936 ปีที่แล้ว +1

    Great video as always. What would the formula be to calculate the difference between the end time of one day with the start of the next day?

    • @SharonSmith
      @SharonSmith  ปีที่แล้ว +1

      Hello! Thanks so much for subscribing to my Channel! If you input the date and time into the cells, and ensure the cell is formatted for Date & Time (or a custom format) then you can simply subtract the end time of day 1 from the start time of day 2 and multiply by 24 to get the result in hours of elapsed time. For example: =(B1-A1)*24 I hope this helps! Thanks for watching!

  • @jordanneufeld821
    @jordanneufeld821 10 หลายเดือนก่อน

    Thanks

  • @user-pw2oq5hb6x
    @user-pw2oq5hb6x 9 หลายเดือนก่อน +1

    Sharon, finally a good tutorial on how to handel time in excel. I need help on a formula to display time when its past midnight. Here is the issue my server tells me the "minutes since event" when I run an event log in the mornings. I downloaded the event log in excel and added the current time. I subtract the "minutes since event" column and format the cell like this =+$D$1-TIME(0,B10,0) Where $D$1 is the time the log was run and B10 is the minutes since the event. All is good until we pass midnight and Excel has to change fro AM to PM, when this happens, my formula returns the # sign. Can you help me? Some of the minutes on the event log are over a 1000, so that's over 12 hours. Thanks, Mike

  • @jesseskellington9427
    @jesseskellington9427 2 หลายเดือนก่อน +1

    Thx 😊

    • @SharonSmith
      @SharonSmith  2 หลายเดือนก่อน

      Thanks for watching!

  • @jgdaily
    @jgdaily ปีที่แล้ว +1

    Great,

    • @SharonSmith
      @SharonSmith  ปีที่แล้ว

      Thanks so much for watching!

  • @HoangNguyen-pv6fz
    @HoangNguyen-pv6fz 8 หลายเดือนก่อน +1

    thanks.

    • @SharonSmith
      @SharonSmith  8 หลายเดือนก่อน

      Thanks for watching!

  • @user-bh6bb9je1w
    @user-bh6bb9je1w 8 หลายเดือนก่อน

    Hi Shannon! I got a problem in subtracting the time, it comes out a negative answer in number (Minutes) especially if the subtrahend is bigger than the minuend.

  • @Project1643.
    @Project1643. 16 วันที่ผ่านมา

    Can Excel calculate the duration of time over many days? For example, i start my well pump on June 1 at 10 AM and turn it off on June 7 at 3PM. Is there a formula that gives me the amount of hours and minutes the pump was on?

  • @ghostkick267
    @ghostkick267 หลายเดือนก่อน +1

    How about that when I have negative hours from last month that are overtaken to the actuall month? Like I have -07:00:00 (-7 hours). I cant just type it into the cell, so the only way to make it, it is a format as number?

    • @SharonSmith
      @SharonSmith  หลายเดือนก่อน

      Handling negative time values in Excel can indeed be tricky, especially when dealing with hours that span over different months. Excel does not natively support negative time values when using time formats like hh:mm:ss. However, you can work around this limitation using number formats and custom formulas.
      Here's a step-by-step guide to handle negative time values effectively:
      Method 1: Using Decimal Numbers for Hours
      Convert Time to Decimal Hours:
      Convert your time into decimal hours. For instance, -07:00:00 can be represented as -7.
      Enter Decimal Hours:
      Simply enter -7 in the cell. Ensure that the cell is formatted as a number, not as time.
      Calculate Total Hours:
      You can add or subtract these decimal hours as needed. For example, if you have -7 hours in one month and you want to add 15 hours from another cell, simply use the formula:
      =-7 + 15
      This will give you 8 hours.
      Method 2: Using a Custom Formula to Handle Negative Time
      If you prefer to keep using the hh:mm:ss format, you can create a custom formula to handle negative times. Here's how:
      Enter Time Values:
      Enter your times as usual, but for negative times, you'll need to handle them with a formula. For example, let's say you have 07:00:00 (positive 7 hours) in cell A1 and you want to represent -07:00:00.
      Create Custom Formula for Negative Time:
      Instead of entering -07:00:00, enter the positive value 07:00:00 in a cell (e.g., A2) and use a formula to convert it to a negative time.
      In another cell (e.g., A3), use a formula like:
      =-HOUR(A2) - MINUTE(A2)/60 - SECOND(A2)/3600
      This will convert 07:00:00 in A2 to -7.
      Summing Time Values:
      To add or subtract these time values, convert them all to decimal hours first using the formula above, then sum them up.
      Example Workbook:
      Imagine you have:
      A1 with the value 7:00:00 (positive 7 hours)
      A2 with the value 07:00:00 (to be treated as negative 7 hours)
      In B1, use the formula:
      =-HOUR(A2) - MINUTE(A2)/60 - SECOND(A2)/3600
      This will convert 07:00:00 to -7.
      In C1, you can add these times:
      =HOUR(A1) + MINUTE(A1)/60 + SECOND(A1)/3600 + B1
      This will give you 0 because 7 - 7 = 0.
      Displaying as Time Again
      If you want to convert the result back to a time format:
      =TEXT(C1/24, "[hh]:mm:ss")
      This will convert your decimal hour result back into a time format.
      By using these methods, you can handle negative times and perform calculations across different months without the limitations of Excel's time format.
      I hope this helps! Thanks for watching!

  • @kinderjojomojo
    @kinderjojomojo 6 หลายเดือนก่อน

    How does it work with 24hr clock eg a shift worker starting at 11pm (23:00) and finishing at 7am (07:00). I've tried the [h] still can't get it to work :(

  • @aviatortrucker6285
    @aviatortrucker6285 2 หลายเดือนก่อน

    I would like to know how you would find the time when you subtract a time that is over 24 hours. Another words how many hours is it from 6 PM say on the fourth from the current time of 12 PM on the sixth. What I’m trying to do is find out the amount of time between two timestamps on two different days. So if I want to find out how long I was on a camping trip, I left 6 PM on the sixth and came back at 8 AM on the eighth of the month, how would I calculate this?

  • @Kvshman
    @Kvshman ปีที่แล้ว +2

    I understand that Excel Online has less features, but deducting minutes from time yields just number signs (###).

    • @SharonSmith
      @SharonSmith  ปีที่แล้ว +2

      Here are some troubleshooting tips to try:
      Adjust Cell Width: Number signs (###) typically appear when the content of a cell is too wide to fit within the column width. Suggest that they try widening the column containing the result to see if the actual value becomes visible.
      Check Number Formatting: Ensure that the cell containing the formula or the result is formatted as a time value. Right-click on the cell, select "Format Cells," and choose a time format (e.g., "hh:mm:ss" or "h:mm").
      Use Proper Time Format: Make sure that the time values being used in the formula are entered correctly. Time values in Excel should be in the format of "hh:mm" or "h:mm AM/PM" for 12-hour format.
      Check Formula Syntax: Verify that the formula being used to deduct minutes from time is correct. The formula should subtract the desired number of minutes from the time value. For example, to deduct 15 minutes from a time value in cell A1, the formula should be: =A1 - TIME(0, 15, 0).
      Confirm Cell References: Double-check that the cell references in the formula are accurate. Ensure that the cell reference for the time value and the deduction value are correct.
      Check for Errors: If the above steps don't resolve the issue, ask the person to check if any error messages are displayed in the cell. Common errors include referencing empty cells, using incorrect functions, or having circular references.
      Test in Excel Desktop: If the person is using Excel Online, suggest that they try the same deduction formula in the desktop version of Excel (if available) to determine if it's a limitation of Excel Online or a specific issue with their formula.
      Hope this helps! Thanks for watching my videos!

  • @peter-qw3nk
    @peter-qw3nk 3 หลายเดือนก่อน

    I am getting different formats for my times. For example some areas are showing 1:03 pm and some are saying 13:03. How can I correct it so everything is uniform?

  • @davidjay3074
    @davidjay3074 6 หลายเดือนก่อน

    What about if you have 24 hrs shifts. How do you add the hours from one day to the next?

  • @farestahamohamed835
    @farestahamohamed835 7 หลายเดือนก่อน +1

    Nice

    • @SharonSmith
      @SharonSmith  7 หลายเดือนก่อน +1

      Thanks so much for watching!

  • @MohammedSaeedAwad
    @MohammedSaeedAwad 5 หลายเดือนก่อน

    why i can't find (datedif) equation in my excel, even i changed my excel version ?

  • @SahilKumar-id3bb
    @SahilKumar-id3bb 26 วันที่ผ่านมา

    If total hours are more than 10k then how to calculate time difference for example
    10034:34:00
    Please help

  • @Nova_Kia
    @Nova_Kia 9 หลายเดือนก่อน +3

    I’m getting 0 as total hours when I know it’s like 50 😢

  • @fifocrew3040
    @fifocrew3040 2 หลายเดือนก่อน +1

    I liked it but it didn't work for me. I tried a few different things. 😢

    • @SharonSmith
      @SharonSmith  2 หลายเดือนก่อน

      What are you trying to do? There may be a different formula or scenario that can work for you. Thanks for watching!