How to Calculate Hours Worked with Excel Power Query (& Properly Sum time)

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Working with time in Excel or to calculate Hours Worked especially when they go past midnight can get tricky in Excel. Forget about using complex Excel formulas! In this video I'll show you how you can use Excel Power Query and its very helpful time transformation features.
    ⬇️ DOWNLOAD the workbook here: pages.xelplus.com/calculate-t...
    Working with time has never been easier! With just a click of a few buttons you can:
    - Calculate the difference between two times
    - How to sum time in Excel
    - Subtract time
    - Calculate hours worked for any shift
    - Round up to the hour
    - Get the hour, minute or second portion of time
    🎓 Get access to the complete Excel Power Query Course: www.xelplus.com/course/excel-...
    Link to Excel Power Query playlist: • Excel Power Query (Get...
    ★ My Online Excel Courses ► www.xelplus.com/courses/
    00:00 Working with Time in Excel
    01:49 Time Transformation in Excel Power Query
    04:59 Add Weekday in Excel Power Query
    06:42 Aggregating Hours Worked with Excel Group By
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #excel #powerquery

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

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

    Grab the file I used in the video from here 👉 pages.xelplus.com/calculate-time-file

  • @AgesOfAgony
    @AgesOfAgony 21 วันที่ผ่านมา

    Mam, you're a blessing to the Excel community! 👌✨

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

    Hey thanks for this tutorial. Using this video as a guide let me figure production per hour per day for each person on my team. Total game changer, I’m excited to apply this to other reports.

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

    Excellent work and explanation Leila! I would appreciate more Power Query videos because they help a lot with data processing. Thank you very much!!

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

    Thank you very much Leila for this wonderful tutorial. I have been trying to find a way to properly calculate the duration in Power BI and this helped me a lot...

  • @wannabedal-adx458
    @wannabedal-adx458 3 ปีที่แล้ว

    I wish i had known about this 8-9 years ago!!! Excellent video, Leila!!

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

    Essential topic ,very nicely explained and simplified. Thanks a lot for sharing.

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

    Great collection! Thank you for the videos.

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

    Excellent. I’m going to investigate using this with time in of a query to time out of a query, taking into account working hours, weekends, and holidays

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

    Very useful Video. Im just learning Power Query and creating good looking Dashboards in Excel. Your videos have really taken me further here.

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

    Hi Leila, thanks for the excellent demo and lesson on manipulating time with Power Query. Your thorough and complete explanations are always appreciated. Thumbs up!

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

      Glad you enjoyed it, Wayne!

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

    youre still the best!!! no one can beat you girl!!!

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

    I like the power query, good, Thank you Leila!

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

    Thanks Leila for the work. wish you all the best

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

    Always useful tutorials. Thank you.

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

    Been working on this for so long, this is soo much easier than all the other methods. THANK YOU x

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

    Alas! If only I would have known this on "Time", when I needed it two years before! I struggled a lot that time with formulas, formatting and macros to somehow solve it! So once again Leila, thanks for showing a simple yet amazing way of handling time data! You are Super! :-)

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

      I've been there too :) Hope it will come in handy in the future.

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

    Thanks Leila, this is very insightful

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

    wonderful. thank you very much!

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

    Great tip! Thanks

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

    Thank you so much! I did not know it was this easy! I've been trying to do DAX formulas that were not working right.

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

    Thanks Lelia. Very helpful as always

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

    Love your thumbnail. The Back to the future movies are flippin awesome. By the way thanks for these videos. Very invaluable source of information regarding spreadsheets.

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

    Yes! Excellent lesson.

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

    Wow.....this is so amazing. I don't have to worry about formulas to calculate datetimes. PQ is a game changer. Thanks for sharing Leila

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

    Thanks , I was searching for this all over for a long time. Thank you. Please also we need the transformation of time to power BI

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

    Informative, Thanks Leila 🙂

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

    Find it very useful. Nice to have a spreadsheet to practice. Took me about 20min to do everything as in the video (translating the buttons to portuguese in my head hehe).
    Thank you!

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

    Thank you. Very nice explanation.

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

    Extremely helpful video as always! Thank you so much for what you do and your style of teaching. I have learned so much and referred many of my friends and coworkers to your video over the years :)

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

      Great to hear! Thanks for your support.

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

    Thank you Leila, excellent as always. I do not know how, but your videos come always at the best time! :)

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

      That's great to hear Gabriella :)

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

    I straight away hit LIKE. Lovely video and Lovely Leila :)

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

    Thanks Leila for sharing this. This is surely going to help lot of employers and freelancers who regularly track time in excel.

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

      I hope it'll be helpful.

  • @Зле_Коте
    @Зле_Коте 3 ปีที่แล้ว

    Thank you! It`s awesome tutorial

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

    Excelente vídeo. Parabéns!

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

    You're the best ever

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

    Perfect ... Thanks Leila

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

    Goodness...You really are good at this...Thanks

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

    Thanks Leila.... I can see these techniques being very helpful in many business situations. Great explanation.

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

      I hope it will come in handy, Matt.

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

    OMG you are the Queen ! Thanks !

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

      Yes! Yes she is. The queen of knowledge!

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

    very great video ♥ many thanks

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

    awesome video. thanks for sharing.

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

    Thanks for this Leila

  • @mariostudio7
    @mariostudio7 4 ปีที่แล้ว +8

    Wow so it remembers that we've merged the two columns we deleted for Work Day and repeats the process in the background! This is amazing 😍

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

      Yes, exactly! PQ is great!

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

    Great session! Thank you very much.

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

    Many thanks 🥰

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

    It's Awesome Tricks, Thanks for sharing.

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

    Very nice presentation Leila. I love this

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

    Great thanks! Saving me for the second time today XD

  • @syamkumar-tc3xo
    @syamkumar-tc3xo 4 ปีที่แล้ว

    Superb information about date and time data

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

    I love powerquery!

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

    This was so, so helpful

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

      Happy to hear that!

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

    Another wonderful video Leila.. thank you..

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

    Thank you Leila

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

    Great work

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

    THANK YOU SO MUCH FOR THIS TUTORIAL!!!!!!!!!!!!!! YOU SAVED ME

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

    Thanks!

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

    Wow. Thanks

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

    hello,
    je suis heureux de vous comprendre et de vous écouté helas y a plus de traduction automatique sur certaine video...
    MERCI A VOUS POUR VOS SUPER TUTO

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

    Hey Leila you are awesome. Thanks for sharing great stuff..

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

    Amazing ❤

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

    Hi Leila, that's an awesome solution from you as usual, great job!
    I have learned a lot from your videos, wondering if you can demonstrate how we can prepare a FIFO based stock aging calculation model using Power Query. I can provide a sample I have developed using formulas and am sure it can be simplified through Power Query.
    Thanks

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

    Thanks 🙏🙏

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

    Perfect!

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

    you are the best

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

    Great job Leila!

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

    Wow so simple

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

    Hi Leila!I Have Set This Same Scenario Up For Project Managers In Work Using Power Query...Thank You For A Really Enjoyable Tutorial :)

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

    thanks for the video, very helpful, i was wondering how to do the basic time, undertime and overtime in this video

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

    Hello Leila you are a life saver 😘😘😘.

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

    Happy Thursday Leila. Thanks...

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

      Same to you! Thank you :)

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

    Coooooool👍

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

    Hi , this one is really good.... I admire your teaching skill's a lot . Keep doing the Good work..

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

    Very Wonderful 🤩

  • @abdallah.kandiel
    @abdallah.kandiel 4 ปีที่แล้ว

    This is a useful one
    Happy Thursday your highness 🙏

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

      Glad to hear it! Happy Thursday to you too :)

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

    How can someone speak so beautifully!!!!!

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

    This is great 👌 Thanks 😊

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

    Great video. Could apply this to tracking case work if you could find the duration between 2 dates/time but exclude weekends and non working hours

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

    Excellent video as always Leila! A quick question: in the last table showing total hours worked by each person, I would like to show it in "days : hours : minutes : seconds". How would I do that? Thank you very much for all your videos.

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

    Mam, Thank you so much for the video.

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

    thanks.

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

    Previously i was subtracting end to start time and then converting to minutes n second using text fn and pasting special to values or multiplying hours to 1440 to get numbers in minutes. Well its way to easy in power query as compared to earlier way of calculations.

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

    amazing

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

    Super trick

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

    Thank you!! This is very powerful especially for project based work or for manufacturing. Question on this however... how do I factor in lunch, dinner and midnight break times of let us say 1 hour each?

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

    Hi Leila, thanks for the tutorial,
    Is it possible for you to show an example of how to calculate % on on time/ late performance logistics based on quantity in Power Query example ? Thanks

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

    Nice use and despite the lazy workers (rounding up to impress their manager) will make me use PowerQuery a lot more. It is just hard as a Non-American to read these weird time formats. As a database engineer I just wish more people use (and present) ISO 8601 standards (which coincidentally makes imports from Excel into a database just so much smoother)

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

    Muito Muito Bom

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

    Beauty with Brain, rare combination

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

    Thank you Leila! Is there a way to do SUMIFS and AVERAGEIFS with PQ? If there is could you make a video about those?

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

    Hi Leila very useful video and as always, carefully explained. I would like to ask you if it is possible to implement this technique by enhancing the hours worked with different values ​​depending on whether they were worked after 8 hours (overtime e.g. + 25% for the 2 hours after 8 and + 50% beyond, i.e. 10 hours worked = 2 hours + 25%, 12 hours worked = 2 hours + 25% and 2 hours + 50%) also work on Saturdays and Sundays should have an increase of + 75%, at least this is what happens in Italy, thanks!

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

    Hello Mam, thanks for the tutorial. It will be helpful if similar logic can be arrived using formula. Because power query needs a refresh every time. Or is there a way to refresh the query automatically based on a scheduled time?
    We use excel for SLA calculation of tickets. In such cases, power query needs a refresh after each update. So, could you please make a tutorial based on formula in future.

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

    Thanks Leila, I'd like to know if power query could calculate working days, considering holy days and Saturday and sundays

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

    Genial..

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

    I lrean a new leason
    Thank you 😍

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

    Wow!

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

    It's a great idea to use Power Query in time calculations. You can also get an age by simply using User Interface

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

    It's about time somebody explained this. Now excuse me while I calculate how long I've been waiting.

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

      No, you can't do that. It's about hours WORKED 😁

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

    Hi Leila, can I calculate the time difference, for example, if I want to know if delivery was on time, in case it was late or arrived earlier than expected, it means I need to calculate the time both back and forth?

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

    Oh Today is on Thursday.... 😜😜
    I love your work Mom