How to Calculate Hours Worked in Excel (Midnight Span)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ค. 2024
  • We’ll carry on with the tutorial on how to calculate hours worked after a night shift. There’s a specific formula to total hours worked past midnight in Excel, but after watching this video, it’ll be a piece of cake!
    In the last video tutorial, we had a look at how to calculate hours worked if the ‘Start Work’ and ‘End Work’ times are within the same day. We also calculated working time for each day, from Monday to Friday. The problem is, that this usual way of calculating hours will not work for you if the working time spans midnight, which is the case of Friday.
    On Friday, work started at seven o’clock in the evening and finished the next day, at six o’clock in the morning. Since the working time spanned midnight, which means the employee didn’t finish work on the same day, we need to use the function IF to calculate the hours correctly.
    Let’s do this together!
    Watch next video tutorial:
    Time Calculation In Excel:
    ► • How to Insert and Form...
    Excel Alignment Formatting
    ► • How to Merge Cells in ...
    How to Use IF Function in Excel (Step by Step)
    ► • How to Use IF Function...
    ================
    ❤️ Become a Patron:
    Do you find our tutorials useful? Join this channel and become a patron
    TH-cam ► www.youtube.com/@ExcelTutoria...
    ================
    ⏱️Timestamps⏱️
    0:00 How to Calculate Hours Worked in Excel (Midnight Span)
    1:11 How to Use If Function in Excel
    ================
    Subscribe and watch more videos that help you use Microsoft Excel quick and easy
    ► th-cam.com/users/ExcelTutori...
    Got Microsoft Office 365? Get it here
    ► www.easyclickacademy.com/buy-...
    Transcription How to Calculate Hours Worked in Excel (Midnight Span) here
    ► www.easyclickacademy.com/How-...
    Connect:
    LinkedIn ► / easyclickacademy
    Facebook ► / easyclickacademy
    Screen Recorder & Video Editor:
    Camtasia ► techsmith.pxf.io/c/1266206/34...
    Voice over artist ► seanantonyvo.com
    #MicrosoftExcelTutorial #ExcelQuickAndEasy #EasyClickAcademy
  • แนวปฏิบัติและการใช้ชีวิต

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

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

    You Sir are the Boss. My finish time is midnight and this formula worked fantastically. Thank you for this video.

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

    Awesome! Thank you for making it so clear

  • @nauruakoura2228
    @nauruakoura2228 2 ปีที่แล้ว

    this was very helpful in fasten my work while working with hours of shift staff for Appraising purposes mainly in the analyzation of their attendances.... Well done

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

    Very clear and easy to understand - thank you!! 🙏🏻

  • @theplunge3762
    @theplunge3762 3 ปีที่แล้ว

    Thank you this helped so much, I am a nightshift nurse and this spreadsheet helped me find some missing hours in my paycheck!

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

    Thank you so much. I searched through so many videos for this answer. Thanks again!!

  • @beversl2
    @beversl2 2 ปีที่แล้ว

    This was amazingly helpful!

  • @soumiamoujane3695
    @soumiamoujane3695 2 ปีที่แล้ว

    Thank you for this video. Very helpful and useful.

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

    Very clear and much appreciated 👍🏻

  • @diamondbreak
    @diamondbreak 2 ปีที่แล้ว

    You are such a life saver! tons of thanks.

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

    THANK YOU, THIS WAS SO EASY TO FOLLOW, AND TO APPLY TO MY WORK SHEET, THANK YOU AGAIN

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

    Amazing information Thanks!!!

  • @AliAbbas-uh4oy
    @AliAbbas-uh4oy 3 ปีที่แล้ว +1

    Thanks, sir, very informative video.

  • @tonystark-kq2dl
    @tonystark-kq2dl ปีที่แล้ว +1

    i love you already, you just saved a graphic artist whos trying to learn another job.

  • @rjrustam8828
    @rjrustam8828 2 ปีที่แล้ว

    Good explanation,
    Thanks

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

    Thanks for this video ❤

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

    Thank You very much for this video

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

    Thanks man'!!

  • @aikching1aikching156
    @aikching1aikching156 3 ปีที่แล้ว

    Thank you .. Help me a lot

  • @syedmubarakbasha4377
    @syedmubarakbasha4377 3 ปีที่แล้ว

    thank u very Much sir such a great video.

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

    Dude, u saved me so lot of time! ❤ u got a new loyal subscriber. 💋

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

    Thank so much sir.

  • @dytjayasinghe
    @dytjayasinghe 3 ปีที่แล้ว

    Thnx its saved my time

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

    Thank you very much...

  • @user-gz4ko5gv1r
    @user-gz4ko5gv1r ปีที่แล้ว

    Helpful

  • @chaudhryjunaidashraf2548
    @chaudhryjunaidashraf2548 3 ปีที่แล้ว

    Thumbs Up !
    Thanks :)

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

    This was very helpful to understand timesheet... is there a video on salary calculation?

  • @raygm6303
    @raygm6303 2 ปีที่แล้ว

    Thank you!

  • @tension0.2
    @tension0.2 3 ปีที่แล้ว

    thank you so much for your lovely helfull video

  • @fourteen9076
    @fourteen9076 4 ปีที่แล้ว

    You are a live saver, thank you

  • @RajSharma-ct2xe
    @RajSharma-ct2xe 3 ปีที่แล้ว

    Thanks a lot... :)

  • @karthikthepulsarian9730
    @karthikthepulsarian9730 3 ปีที่แล้ว

    That was helpfull

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

    thanks👍

  • @mdrubelrubel3115
    @mdrubelrubel3115 2 ปีที่แล้ว

    Nice video

  • @christellelafrance3706
    @christellelafrance3706 3 ปีที่แล้ว

    Thank You.

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

    Thank a lot

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

    Thank you

  • @shahzadsami5613
    @shahzadsami5613 3 ปีที่แล้ว

    WaoW Great Sir

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

    Hello, How do you calculate this, working with a 24 hours clock instead of AM and PM hours?

  • @digitalmarketingtipps
    @digitalmarketingtipps 29 วันที่ผ่านมา

    thank you.

  • @markjones3088
    @markjones3088 4 ปีที่แล้ว

    Chers frank you saved my life xx

  • @akkiannetolentino351
    @akkiannetolentino351 2 ปีที่แล้ว

    thank you so much, im suffer this for how many years to. make my time sheet when comes to overlapping time.

  • @atulshukal4072
    @atulshukal4072 3 ปีที่แล้ว

    Yes very good Sir

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

    What about formula in determining the Time Started or the Time ended with the given Total hours is 8 hours. Example, I started 6:00 AM and ended in 2:00 PM, what would be the formula to that? Thank you and regards.

  • @Zlx1
    @Zlx1 4 ปีที่แล้ว +3

    This works perfectly, but i have a different problem related to this.
    If say the work hours are from 17:00-07:00, with this tutorial it totals at 14 hours which is correct. But what if i want to automate the total amount of hours worked that has elapsed 18:00 but within 06:00?
    Where I'm from we get paid extra for the hours worked passed 18:00 and stops after 06:00, so with my 14 hours worked only 12 hours are within that time frame. Is there a formula for this?

  • @mr.mughalll
    @mr.mughalll ปีที่แล้ว

    Thanks

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

    What about Formula to determine the starts or the end of Hour in 8 hour worked. Like if I started 8:35 AM but I have to worked 8 hours, what time should I end? Thank you and regards.

  • @ultra332211
    @ultra332211 2 ปีที่แล้ว

    Thanks for the video, of the topic -by the way which video editor was used to create this video - speech to text is fabulous if any one read this comment and if know the answer - please answer my question

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

    Very useful thank u sir😊😊 I was tensed from yesterday and now I am relaxed 😘😘

  • @philbrenman2507
    @philbrenman2507 3 ปีที่แล้ว +3

    I have followed your instructions to the letter and I continue to get an Error popup. Very frustrating.

  • @xavierfranzvicente5940
    @xavierfranzvicente5940 2 ปีที่แล้ว

    Hi! just a question can you show us how to deduct hours on any time for example 1 want to deduct 2 hours from 12:00am or 1am
    hope you can helps us Thank you! more power

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

    hey am impressed with tutorial. Could you please do a tutorial of lets, an employee starts work 7am and goes for normal shift of 8 hours until 4pm, then again starts another over time shift from 7pm to 3am . please am stack help a brother.

  • @Xavaltir
    @Xavaltir 4 ปีที่แล้ว

    hi, i have an issue when clicking on the 3th cell i need i get the error message does anyone know to fix this?

  • @CambodianTutorials
    @CambodianTutorials 3 ปีที่แล้ว

    thanks

  • @marcuspo5211
    @marcuspo5211 3 ปีที่แล้ว

    Sir, if the work start at 6: Am and end at 11: 30 Am. How to I calculate?

  • @stevedavenport9365
    @stevedavenport9365 3 ปีที่แล้ว

    This is somewhat helpful. What if the time is 6:00PM to 06:30AM?

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

    finally it's found

  • @patriciailin1369
    @patriciailin1369 2 ปีที่แล้ว

    Can I somehow calculate hours worked between 5:03PM to 08:30 AM, if the business hours to be calculated are 8:00-5:00PM?

  • @caressowens9280
    @caressowens9280 2 ปีที่แล้ว

    What if it does change after copying the overnight formula to the other cells? Mine changed, but before it changed the formula was accurate. I just clicked the reverse command to correct the change.

  • @MedooWolf
    @MedooWolf 4 ปีที่แล้ว +7

    Try the “Mod” function for example =mod((time out - time in),1)

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

      Moh'd Wolf thank you for your tip :)

    • @MedooWolf
      @MedooWolf 4 ปีที่แล้ว

      Excel Tutorials by EasyClick Academy Thank you actually not me 😇

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

      moh`d Wolf, to be honest with the with the =IF function the daily time came out well, but on bottom the Sum didnt work, shows stupid values no matter how i set in cell format. i tried your =MOD funcition and it works correctly thanks very much

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

      @@MrTruckdriver66 great 👍🏼, our company have people working days and nights so whenever i use IF function on night times it gives me some kind of error, so that i used MOD function.

  • @SERGIO-cr6uy
    @SERGIO-cr6uy ปีที่แล้ว

    Hi , since you seem to be an Excel Guru, i've a question that you may be able to answer.
    is there a formula that add to something while keeping a previous calculation?
    Let me explain what i'm looking for:
    Let's say i have in cell A1 a value "100,00 hr" & in cell A2 "1,50 hr" (using decimal values with suffix, not hours / time / duration)
    (meaning 1.50 hr instead of 1:30:00)
    I want A1 to sum the added value every time i add something in A2.
    Let's say monday i add 1,50 hr on A2, i want A1 100,00 hr to be be "101,50 hr"
    Tuesday i write 2,00 hr in cell A2, i want it to sum up in A1 ( "103,50 hr")
    Wednesday i write 5,00 hr in cell A2, i want it to keep summing in A1 ( = 108,50 hr)
    etc.
    First of all, is it possible to do this? and if it is, what would be the formula?
    To be even more spécific i'm gonna use it on Google Sheets, hopefully , if there's a formula on Excel, Google Sheets will deal with it.
    Thanks a million.

  • @waqaszamanofficial1
    @waqaszamanofficial1 4 ปีที่แล้ว

    Very helpful appreciate.... 🇵🇰🇵🇰🇵🇰

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

    How do i subtract lunch on the same time. Do i just add -30

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

    What if the start time is not greater than the stop work time even if they span midnight? I worked from 18:58 to 07:01, which would negate the described logical test.

  • @avinashmajhi2510
    @avinashmajhi2510 5 ปีที่แล้ว

    Great

  • @vishnuramesh8805
    @vishnuramesh8805 4 ปีที่แล้ว

    Elapsed time contains AM or PM!! What to do?

  • @vanz13-40
    @vanz13-40 7 หลายเดือนก่อน

    Hey there great video found one problem with the equation if the clock in time is 6:00 Am and clock out time is 6:00 Pm the same time but am and pm the output would be 0.5 to fix this problem I used this equation =(IF(D4>D5,D5+1,D5)-D4)*24 this will return the right output. Just add the times 24 at the end to fix this problem. Furthermore this equation does no work for 24 hours shifts which I doubt people do but it a thing. Again Great video just trying to provide more help.

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

      Thnx man i got a solution from comment section instead of video😅

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

    your formula gives wrong output when you try to total the hours worked for more than one day. For example if a person has worked 13:57 hours and another day 11:48 hours (this hours I am getting using your formula) then total shows as 73:45 hours instead of 25:45 hours. Any suggestion?

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

    Can I get the formula for decimal please?

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

    Good video, I mostly got the way it was presented. However, I missed the logical step behind the "+1" in the formula.
    Does Excel read it as "+1 day" as initially I thought it would read it as "+1 hour" and was wondering how it would work logically?

    • @donalodomhnaill
      @donalodomhnaill 2 ปีที่แล้ว

      Yep, it is actually a terrible discription in that, well, it actually wasn't described at all! Pretty rubbish tutorial if they thing you are teaching leaves you with more questions. Makes me think the person does not actually know what they are doing and is himself just coping someone elses tutorial.

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

      2:36 tells you what the +1 means.

  • @rayvanrensburg93
    @rayvanrensburg93 3 ปีที่แล้ว

    Good Day, My Question is, How do I change this in my time sheet calculator if this is in my cell and part of the validation code. need to modify this so I can still calculate the hours if it is night shift and not day shift starting from D17 to change to in time at 18:00 and out time at F17 to deduct it from E17
    =IFERROR(IF(AND(D17"";E17"");IF(D17>$C$12+TIME($D$12;($D$12-INT($D$12))*60;0);0;IF(E17>$C$12+TIME($D$12;($D$12-INT($D$12))*60;0);MIN(TIME($D$12;($D$12-INT($D$12))*60;0);($C$12+TIME($D$12;($D$12-INT($D$12))*60;0)-D17));MIN(IF((E17-$C$12)

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

    Hi Any possibility you could help with how to add an IF BLANK clause into this formula? would appreciate it :)

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

      Figured it out. It required an IF rule within an IF rule :).

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

    how can you subtract break from it ?

  • @cmarin9109
    @cmarin9109 2 ปีที่แล้ว

    How could I fix a problem, I have a worker who started 11am in the morning , and finished working 12am at night

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

    I need to understand how 'End Work + 1' is calculating the total hours worked. Please explain.

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

    help please .. formula start work end work = hours work.. (1.5) for "1hr 30mins" ...tnx .

  • @justanothercuriouscat
    @justanothercuriouscat 2 ปีที่แล้ว

    what if with breaks and lunch time?

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

    hhmm whats the formula for 6:00AM minus 10hours??

  • @harisbasir5902
    @harisbasir5902 3 ปีที่แล้ว

    You can use Mod Fuction =Mod(D7-D6,1) enter

    • @petrupietersen6116
      @petrupietersen6116 2 ปีที่แล้ว

      Hi, how can I work it out with the modfunction with the following as an example:
      I work from 22:00 pm (time in) until 00:30 (time out) or 6 May 2022 23:50 (time in) until 7 May 2022 00:10 am (00:10: 10 minutes past midnight)(time out)?
      Thank you.

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

    I'm finding in my 2021 version of MS Excel I'm left with a percentage rather than the number of hours:mins (eg 0.33 instead of 8hrs). Can someone please tell me how to add *24 to the formula so it can display the number of hours.

    • @mr.a_a9407
      @mr.a_a9407 ปีที่แล้ว

      Try changing cell formatting from percentage or general to Time format

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

    How it works to calculate with 24 hours clock instead of AM and PM hours?

  • @naeemabbas4889
    @naeemabbas4889 2 ปีที่แล้ว

    Sir am want to calculate hours
    But not understanding how can i do
    Sir please chek explained bely
    Start time 6:00 am
    End time 8:30 pm
    1) 5;40
    2 )6:30
    3. )7:10
    Sir please help me

  • @shahzadsami5613
    @shahzadsami5613 3 ปีที่แล้ว

    Millions Likes Tip

  • @hamzamirza5028
    @hamzamirza5028 3 ปีที่แล้ว

    Can anyone tell me how to use same formula for multiple cells?

  • @mahmoudelkheshen4615
    @mahmoudelkheshen4615 2 ปีที่แล้ว

    Thanks, is +1 means 12 hours.

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

    didnt work gave me some random hrs

  • @moinmohammed4u
    @moinmohammed4u 3 ปีที่แล้ว

    HOW ABOUT THIS EXAMPLE :- CELL A (9:00AM - 1:00PM) CELL B
    (5:00PM - 10:00PM) HOW TO CALCULATE

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

    Had a start time of 15:00 and an end time of 00:43, no matter what using this IF command I get a working time of 00:43.... Sigh...
    Stuck :D

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

    What if we require in this list Only minute in a row.....
    00:05
    How to show 5 minutes in this

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

    This does not work when, example: You start work at 6am and finish at 6am the next day

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

    the formula doesn’t work

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

    Gave me an answer but that was incorrect and then mate all the right answers wrong

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

    I think this doesnt work

  • @jmatsko25
    @jmatsko25 2 ปีที่แล้ว

    Didn't work

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

    Doesnt work

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

    Didn’t work

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

    Yeah it didn't work

  • @thuyle-js4xx
    @thuyle-js4xx 2 ปีที่แล้ว

    CovidImages need to be invested more than half19

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

    But you talked too much

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

    How do I subtract 30 min lunch?