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

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
    @LeilaGharani6 ай бұрын

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

  • @AgesOfAgony
    @AgesOfAgony22 күн бұрын

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

  • @everclearacg
    @everclearacg4 жыл бұрын

    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_ES3 жыл бұрын

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

  • @wayneedmondson1065
    @wayneedmondson10654 жыл бұрын

    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

    4 жыл бұрын

    Glad you enjoyed it, Wayne!

  • @OrcunBahadir
    @OrcunBahadir3 жыл бұрын

    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...

  • @gmccormack1234
    @gmccormack12343 жыл бұрын

    Great collection! Thank you for the videos.

  • @azeezahmed7070
    @azeezahmed70703 жыл бұрын

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

  • @wannabedal-adx458
    @wannabedal-adx4584 жыл бұрын

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

  • @vijayarjunwadkar
    @vijayarjunwadkar4 жыл бұрын

    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 жыл бұрын

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

  • @MrJrhzues
    @MrJrhzues Жыл бұрын

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

  • @kevinbolt999
    @kevinbolt9999 ай бұрын

    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

  • @Theportraitdude
    @Theportraitdude3 жыл бұрын

    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.

  • @serawitbogale3144
    @serawitbogale31444 жыл бұрын

    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

  • @LearnExcelVBA
    @LearnExcelVBA4 жыл бұрын

    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.

  • @phpvbacoder9000
    @phpvbacoder90004 жыл бұрын

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

  • @cambike
    @cambike4 жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    You're so welcome!

  • @rachidmoutawakk1834
    @rachidmoutawakk18343 жыл бұрын

    Thanks Leila for the work. wish you all the best

  • @aakashshah4494
    @aakashshah44942 жыл бұрын

    Always useful tutorials. Thank you.

  • @Luciano_mp
    @Luciano_mp3 жыл бұрын

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

  • @moazzamca1
    @moazzamca14 жыл бұрын

    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

  • @mariostudio7
    @mariostudio74 жыл бұрын

    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 жыл бұрын

    Yes, exactly! PQ is great!

  • @nonoobott8602
    @nonoobott86024 жыл бұрын

    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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    It really is :)

  • @StaticBlaster
    @StaticBlaster3 жыл бұрын

    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.

  • @oladapoomolaja4104
    @oladapoomolaja41044 жыл бұрын

    Thanks Leila, this is very insightful

  • @alm6885
    @alm688511 ай бұрын

    Yes! Excellent lesson.

  • @davidbecker4669
    @davidbecker46693 жыл бұрын

    OMG you are the Queen ! Thanks !

  • @StaticBlaster

    @StaticBlaster

    2 жыл бұрын

    Yes! Yes she is. The queen of knowledge!

  • @mattschoular8844
    @mattschoular88444 жыл бұрын

    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.

  • @gabriellaprievara7379
    @gabriellaprievara73794 жыл бұрын

    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 :)

  • @ericaleverson9430
    @ericaleverson94302 жыл бұрын

    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.

  • @felipelandim2881
    @felipelandim28814 жыл бұрын

    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!

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Excellent!

  • @Timmy_1011
    @Timmy_10114 жыл бұрын

    You're the best ever

  • @wlouiz
    @wlouiz3 жыл бұрын

    Thanks Lelia. Very helpful as always

  • @RicardoSadaJapp
    @RicardoSadaJapp Жыл бұрын

    Great tip! Thanks

  • @HusseinKorish
    @HusseinKorish4 жыл бұрын

    Perfect ... Thanks Leila

  • @shadrackawunyo7786
    @shadrackawunyo77864 жыл бұрын

    Very nice presentation Leila. I love this

  • @sachinrv1
    @sachinrv14 жыл бұрын

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

  • @blindshark4560
    @blindshark45604 жыл бұрын

    Thanks for this Leila

  • @GrugeSilva
    @GrugeSilva3 жыл бұрын

    Excelente vídeo. Parabéns!

  • @fraziqbal6938
    @fraziqbal69389 ай бұрын

    wonderful. thank you very much!

  • @fcoatis
    @fcoatis4 жыл бұрын

    Thank you. Very nice explanation.

  • @aman9028206170
    @aman90282061704 жыл бұрын

    Informative, Thanks Leila 🙂

  • @waltermlk
    @waltermlk Жыл бұрын

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

  • @alwarhi
    @alwarhi4 жыл бұрын

    Many thanks 🥰

  • @Зле_Коте
    @Зле_Коте3 жыл бұрын

    Thank you! It`s awesome tutorial

  • @hazemali382
    @hazemali3824 жыл бұрын

    very great video ♥ many thanks

  • @irkMukut
    @irkMukut3 жыл бұрын

    How can someone speak so beautifully!!!!!

  • @syamkumar-tc3xo
    @syamkumar-tc3xo4 жыл бұрын

    Superb information about date and time data

  • @aimendondo
    @aimendondo4 жыл бұрын

    Great session! Thank you very much.

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Glad you enjoyed it!

  • @gintomino4136
    @gintomino41364 жыл бұрын

    I love powerquery!

  • @ElectronicBarta
    @ElectronicBarta6 ай бұрын

    awesome video. thanks for sharing.

  • @jaimecalderon1432
    @jaimecalderon14324 жыл бұрын

    Thank you Leila

  • @foysalahmed5587
    @foysalahmed55874 жыл бұрын

    It's Awesome Tricks, Thanks for sharing.

  • @shashwatmishra3023
    @shashwatmishra30234 жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Thank you, I will

  • @praavi5444
    @praavi5444 Жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    Жыл бұрын

    Glad it helped!

  • @musicaenlife
    @musicaenlife4 жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Thanks for watching!

  • @MultiSciGeek
    @MultiSciGeek Жыл бұрын

    Great thanks! Saving me for the second time today XD

  • @wofdigy
    @wofdigy4 жыл бұрын

    Another wonderful video Leila.. thank you..

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Thank you too!

  • @chrism9037
    @chrism90374 жыл бұрын

    Great job Leila!

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Thanks Chris 😊

  • @sibidi894
    @sibidi8944 жыл бұрын

    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.

  • @Primemantis108
    @Primemantis1084 жыл бұрын

    Thanks!

  • @bellomdragon1838
    @bellomdragon18384 жыл бұрын

    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

  • @hilaryjansz4687
    @hilaryjansz46878 ай бұрын

    Great work

  • @ibrahim82649
    @ibrahim82649 Жыл бұрын

    Hello Leila you are a life saver 😘😘😘.

  • @LeilaGharani

    @LeilaGharani

    Жыл бұрын

    Happy to help!

  • @karl2776
    @karl27768 ай бұрын

    This was so, so helpful

  • @LeilaGharani

    @LeilaGharani

    8 ай бұрын

    Happy to hear that!

  • @Deependra1991
    @Deependra19914 жыл бұрын

    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.

  • @mohamadhadid2403
    @mohamadhadid2403 Жыл бұрын

    you are the best

  • @cshahed
    @cshahed4 жыл бұрын

    Wow. Thanks

  • @abdallah.kandiel
    @abdallah.kandiel4 жыл бұрын

    This is a useful one Happy Thursday your highness 🙏

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

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

  • @SUPERmuzhroom
    @SUPERmuzhroom Жыл бұрын

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

  • @FRANKWHITE1996
    @FRANKWHITE19963 жыл бұрын

    Perfect!

  • @darrylmorgan
    @darrylmorgan4 жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    My pleasure Darryl!

  • @taizoondean689
    @taizoondean6894 жыл бұрын

    Thanks 🙏🙏

  • @ramkyadi
    @ramkyadi4 жыл бұрын

    Wow so simple

  • @ubaidyaseencubaidyaseenc8207
    @ubaidyaseencubaidyaseenc82078 ай бұрын

    Amazing ❤

  • @krn14242
    @krn142424 жыл бұрын

    Happy Thursday Leila. Thanks...

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Same to you! Thank you :)

  • @Abioladavid01
    @Abioladavid014 жыл бұрын

    Coooooool👍

  • @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

  • @mohamedabdellatif1486
    @mohamedabdellatif14864 жыл бұрын

    Very Wonderful 🤩

  • @domingospereira3041
    @domingospereira30413 жыл бұрын

    Muito Muito Bom

  • @hiteshrathod692
    @hiteshrathod6924 жыл бұрын

    This is great 👌 Thanks 😊

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    You're welcome 😊

  • @hosseinhosseinpoor4845
    @hosseinhosseinpoor48453 жыл бұрын

    thanks.

  • @rahulbhujbal3663
    @rahulbhujbal36633 жыл бұрын

    Beauty with Brain, rare combination

  • @Gaajinikanth
    @Gaajinikanth3 жыл бұрын

    Super trick

  • @bilalmalik728
    @bilalmalik7282 жыл бұрын

    amazing

  • @srikanth7368
    @srikanth73684 жыл бұрын

    Mam, Thank you so much for the video.

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Most welcome 😊

  • @Jhun_L_Roxas
    @Jhun_L_Roxas2 жыл бұрын

    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

  • @eduardomunoz2764
    @eduardomunoz27644 жыл бұрын

    Genial..

  • @vida1719
    @vida17194 жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    👍

  • @ErosLuciano
    @ErosLuciano3 жыл бұрын

    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!

  • @knutboehnert3163
    @knutboehnert31633 жыл бұрын

    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)

  • @rubencorderotorres2915
    @rubencorderotorres29154 жыл бұрын

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

  • @keijo456
    @keijo4564 жыл бұрын

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

  • @praveenk1672
    @praveenk16724 жыл бұрын

    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.

  • @estivisonmc
    @estivisonmc4 жыл бұрын

    Wow!

  • @alexrobatz1513
    @alexrobatz15134 жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    😊 thank you

  • @mcd22630
    @mcd226304 жыл бұрын

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

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

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

  • @shoaibrehman9988
    @shoaibrehman99884 жыл бұрын

    Really useful stuff no more formulas

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Glad it was helpful!

  • @analyzee
    @analyzee4 жыл бұрын

    I lrean a new leason Thank you 😍