Excel Formula for Time Elapsed in Days, Hours and Minutes

Тәжірибелік нұсқаулар және стиль

Calculate the time elapsed in days, hours and minutes between two date and times entered into Excel.
Excel stores date and times as a number with decimals. Because of this we cannot simply subtract the two values.
This video tutorial uses a combination of functions to calculate the time elapsed and display it in an easy to understand format. The INT and MOD functions play important roles in making this happen.
★★ Liked the Video? Subscribe: bit.ly/computergaga ★★
Find more great free tutorials at;
www.computergaga.com
** Online Excel Courses **
The Ultimate Excel Course - Learn Everything ► bit.ly/UltimateExcel
Excel VBA for Beginners ► bit.ly/37XSKfZ
Advanced Excel Tricks ► bit.ly/3CGCm3M
Excel Formulas Made Easy ► bit.ly/2ujtOAN
Creating Sports League Tables and Tournaments in Excel ► bit.ly/2Siivkm
Connect with us!
LinkedIn ► / 18737946
Instagram ► / computergaga1
Twitter ► / computergaga1

Пікірлер: 218

  • @Burgyste
    @Burgyste5 жыл бұрын

    Well explained, thank you, keep up the good work!!

  • @sizwemchunu6110
    @sizwemchunu61103 жыл бұрын

    Thank you for this Tutorial really helpful. I don't want to include hours after shift (22:00 - 07:00). how do I factor the 9 hours out?

  • @carlosalfonso7504
    @carlosalfonso75046 жыл бұрын

    Very important & useful lesson once again, thank you so much!

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    You're welcome Carlos. Thank you.

  • @bohdanjarema3786
    @bohdanjarema37863 жыл бұрын

    Hi, Is there a way to return the answer with leading zeros, say,- 3 days 9 hours 5 minutes as 3d 09h 05m (or 3:09:05:00 if you use colons (and include seconds if you prefer) instead of d,h,m,s)

  • @cixmogarcia582
    @cixmogarcia5824 жыл бұрын

    =INT(B2-A2)&" Days"&Hour(MOD(B2-A2,1))&" Hours "&MINUTE(MOD(B2-A2,1))&" minutes"

  • @nawazshaikh6081

    @nawazshaikh6081

    3 жыл бұрын

    what will be the formula if I want to exclude the weekend? Please help..

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    You would use NETWORKDAYS or NETWORKDAYS.INTL instead of B2-A2.

  • @rahultomar8546

    @rahultomar8546

    2 жыл бұрын

    @@Computergaga Hello Sir please type Full formula with exclude weekend and I want result in days Hour minutes

  • @francenewhyte6016

    @francenewhyte6016

    2 жыл бұрын

    Good Day. How can I show days only. So for example I only want to reflect full days.

  • @j.rjunior5584

    @j.rjunior5584

    Жыл бұрын

    Or you can also use this formula as well, it's very similar. But if there's no data in it it'll show blank. =If(B2="","",INT(B2-A2)&" Days "&TEXT(B2-A2, "h""hrs""m""mins""")) The format in the text you can change it to whatever you wanna see.

  • @thebesttechnical3608
    @thebesttechnical36084 жыл бұрын

    Great and easy way of explaining the topic, thank you very much.

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    You're very welcome.

  • @mariacortina1000
    @mariacortina10002 жыл бұрын

    Well explained! Thanks - exactly what I needed!!

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Thank you, Maria.

  • @tonyhaber3077
    @tonyhaber30772 жыл бұрын

    This is the best video I have watched for Time calculations in Days & Hours. Thanks a lot.

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Thank you very much, Tony.

  • @nawazshaikh6081
    @nawazshaikh60813 жыл бұрын

    @Computergaga Thanks for sharing this. what will be the formula if I want to exclude the weekend? Please help..

  • @dbernie57
    @dbernie575 жыл бұрын

    Hi, How do you Add in the ability to also measure Years and Months whilst still keeping all the information above? thanks

  • @knowledgebyte
    @knowledgebyte5 жыл бұрын

    Good work. I managed to adapt that into a calculated column and it works a treat. I wonder what the DAX equivalent of that in the data modeler is, in Power pivot?

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Something I have not tried. But I am sure the equivalent is possible there. Lots to explore in DAX.

  • @SannareddyHarshavardhan547
    @SannareddyHarshavardhan5477 жыл бұрын

    Thank You

  • @leannNarcher
    @leannNarcher2 жыл бұрын

    is it possible to incorporate =IF(A2

  • @GM-hj8se
    @GM-hj8se5 жыл бұрын

    Brilliant! Thank you!!

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    My pleasure.

  • @sttank2192
    @sttank21924 жыл бұрын

    Sir, how would I be able to have the values be based on a 8 hour work day that would auto subtract from the days (I am applying it to employee accruals/used leave) Thanks

  • @Kitana68
    @Kitana6811 ай бұрын

    Good Job Explaining. Finally got it after adjusting the cell formatting!

  • @Computergaga

    @Computergaga

    11 ай бұрын

    Thank you! Glad that it helped.

  • @jackychawla5422
    @jackychawla54227 жыл бұрын

    so elegant sir

  • @vineshdamodaran9607
    @vineshdamodaran96074 жыл бұрын

    Perfect!! Thank you.

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    You're welcome Vinesh.

  • @obi76ad
    @obi76ad3 жыл бұрын

    Nice one! Life saver. Found this video 10 minutes before my meeting and quickly updated my spreadsheet! Liked! Is there a way to hide the value if it is zero because the date and time values have not been entered yet?

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Sure. We can do this in the formatting of the cells. Difficult to explain in the comment, but zero values are the third element in custom formatting. If you ignore it, it will display as nothing. We could also wrap and IF around this to achieve it.

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

    Sir your education is like a burning lamp. Who shows the right path. We are very happy with you.

  • @Computergaga

    @Computergaga

    Жыл бұрын

    That is beautiful, Sandeep. Thank you 😊

  • @aydinhami
    @aydinhami8 ай бұрын

    Excellent and very informative video!

  • @humashoeb280
    @humashoeb2805 жыл бұрын

    Great video, how would I calculate time lapsed between two date/time values based on a working day , for example calculating the difference between core working hours say 8.30am-5.00pm

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Thank you Huma. I have a video here - kzread.info/dash/bejne/ZZaJuNuMeJjWorQ.html that explains this and more. It is a timesheet spreadsheet based on different work hours and days.

  • @erimwolf7285
    @erimwolf72855 жыл бұрын

    Thanks you for your very informative video! But I do have a question, how would you add all of your differences together afterwards?

  • @MuddyBuddy685

    @MuddyBuddy685

    3 жыл бұрын

    Did you ever figure out how to add them all up?

  • @erimwolf7285

    @erimwolf7285

    3 жыл бұрын

    @@MuddyBuddy685 unfortunately, no

  • @MuddyBuddy685

    @MuddyBuddy685

    3 жыл бұрын

    Erim Wolf what did you end up doing with your worksheet? I know it was a year ago but I’m hoping for som help

  • @erimwolf7285

    @erimwolf7285

    3 жыл бұрын

    ​@@MuddyBuddy685 I did actually! you add up the rows containing your dates instead of the new totals you acquired in your row. for example: =INT((SUM(B2:B3))-(SUM(A2:A3)))&"days"&HOUR(MOD((SUM(B2:B3))-(SUM(A2:A3)),1))&"hours"&MINUTE(MOD((SUM(B2:B3))-(SUM(A2:A3)),1))&"minutes" (I input those specific numbers to go with the video so you have a visual, but replace the number with whatever you have) :)

  • @MuddyBuddy685

    @MuddyBuddy685

    3 жыл бұрын

    @@erimwolf7285 Great! Thank you so much!

  • @dianagoncalves5665
    @dianagoncalves56657 жыл бұрын

    hi, How to sum up days, hours and minutes?

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

    I never comment on videos but this was just great and helped me resolve my issue. Thanks 🙏

  • @Computergaga

    @Computergaga

    Жыл бұрын

    That's awesome. Thank you, Akhmad.

  • @karishmaarora5498
    @karishmaarora54983 жыл бұрын

    This is excellent! Thank you so much. Can you please advise how to include the networkdays as well to this. It will be really helpful.

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Thank you, Karishma. NETWORKDAYS would replace the B2-A2 calculation.

  • @ChopsB8X

    @ChopsB8X

    2 жыл бұрын

    @@Computergaga but how? Can you show the formula based on your video? Thank you 🙏

  • @girivv7336
    @girivv73365 жыл бұрын

    Awesome!!! you saved my day...

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Awesome. Thank you Giri.

  • @tangocharlee786007
    @tangocharlee7860074 жыл бұрын

    Very Informative and Easy to Understand

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you, Iftiquar.

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

    HI, is it possible to calculate the next date and time with counting 8 hrs per day.

  • @user-xb1wh2go3l
    @user-xb1wh2go3l2 жыл бұрын

    Thanks alot for the teaching sir... It's very helpful

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Great to hear. Thank you.

  • @ItsMe-ic1gb
    @ItsMe-ic1gb2 жыл бұрын

    Is there a way to do this with CONCATENATE? Ex: A2 is 8/2/2021, B2 is 8:30 and A3 is 8/4/2021,B3 is 4:30. Once concatenated it joins the cells of A2 and B2 into C2 and A3 and B3 into C3. I've tried to do this but it comes out not looking right. is it impossible to separate the date and time? (sorry if it's a confusing question)

  • @f-dtpww5487
    @f-dtpww54872 жыл бұрын

    Once you get the Days, hours and minutes, is there any way to sun this elasped time? Thx

  • @marcworley1
    @marcworley14 жыл бұрын

    Hi this is really useful. What changes would I have to make to the formula to display the time elapsed in hours?

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you, Marc. I have another video on techniques for this here - kzread.info/dash/bejne/kXqblsmlZNTco9Y.html

  • @sotiriss.93
    @sotiriss.933 жыл бұрын

    I keep having problems with the mod function between the cells.Any help?

  • @ciimaofficial7252
    @ciimaofficial72523 жыл бұрын

    Hi Computer Gaga, I have been looking for this formula for days! I am so glad I found your chanel, I have subscribed and currently on your playlist. My question for this tutorial is, can the formula work if the difference between A and B is in hours e.g 3 hours and when the time in B increases,it displays 3 days, 3 hours?

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Thank you. Sure. We could wrap the formula in a conditional function so that if the value is over a day then show days, otherwise just the hours.

  • @dwk1986

    @dwk1986

    3 жыл бұрын

    @@Computergaga can you actuall show how to do this? as well as showing how to average these types of datas?

  • @TheMMAVOICE
    @TheMMAVOICE2 жыл бұрын

    Very helpful, thank you!

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Glad it was helpful!

  • @hiteshchauhan645
    @hiteshchauhan6454 жыл бұрын

    What is formula if calculate as per (8hrs)as working hrs?

  • @dishantkumar8405
    @dishantkumar84055 жыл бұрын

    Thanku sir ,its very help full for me .

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Great to hear Ankita. I'm happy to help.

  • @crystalbell9608
    @crystalbell96086 жыл бұрын

    Thank You!!!!!

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    You're welcome Crystal.

  • @dhavalmistry9901
    @dhavalmistry99014 жыл бұрын

    Respected sir, I m Dhaval from india. Finding this kind of formula. This is a wonderful. Just complete solution. Love know more & more. Thank you very much And respecte. Manaskara.

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you Dhaval for your kind words.

  • @dhavalmistry9901

    @dhavalmistry9901

    4 жыл бұрын

    @@Computergaga Mostly well come Sir. Have good day

  • @cars365official
    @cars365official4 жыл бұрын

    Brilliant !!!

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you Zahin.

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

    Thank you so much for this. Really helpful

  • @Computergaga

    @Computergaga

    Жыл бұрын

    You're very welcome!

  • @j.rjunior5584
    @j.rjunior5584 Жыл бұрын

    I have a question not related with the video. But is it possible too sum values from one cell but only have it updated to the current cell when that value is added in? Soo for example if I have a formula to calculate equity in all of row "A", and say the equity is at $200 in A18, and say I wanna add a deposit of $100 in column B1. Is it possible just to update the current column in A18, rather than suming the rest of the columns in "A1-A17." Soo column A18 would show $300, and the rest of the columns from A1-A17 values would stay the same? I have noo idea if you can or can't doo this in excel. I know for a fact tho, is if I match the same columns and rows in column A and B than it'll work perfectly. But just wondering if I can do it that way I mentioned above?

  • @jay55patel
    @jay55patel4 жыл бұрын

    great video thank you

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Thank you Jay.

  • @jahskido06
    @jahskido063 жыл бұрын

    Thankyou, this helped me out!

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Great to hear, Taione. Thank you.

  • @ondee2234
    @ondee22349 ай бұрын

    Thanks. Was very helpful!

  • @Computergaga

    @Computergaga

    9 ай бұрын

    Glad to hear it! Thank you.

  • @KnowEverythin
    @KnowEverythin4 жыл бұрын

    If , i use different column like start date, start time, end date ,end time... What is the formula??

  • @pradeepvishwakarma9831
    @pradeepvishwakarma98313 жыл бұрын

    Thanks for the tutorial..

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    You're welcome, Pradeep.

  • @JB_magic
    @JB_magic4 жыл бұрын

    How do you get the date and time to be displayed in a single cell? And can you edit that particular cell, i.e. can you enter "11/10/19 10:13:42" in another cell?

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Sure. You can enter that in a cell.

  • @sekarukl
    @sekarukl2 күн бұрын

    Thanks for detailed explanation can you please help to How to calculate average of the difference data generated?

  • @Computergaga

    @Computergaga

    Күн бұрын

    You're welcome. For that, we would need a column instead or in addition to this one, with the difference as a numeric value. We cannot average the results from this video as they are a text string. A simple subtraction such as B2-A2 would achieve this, though if dates and times are in different columns, they need to be combined first. Then you can average the results of the column.

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

    Thank you sir. You are best a best teacher I am very happy .may you live long.

  • @Computergaga

    @Computergaga

    Жыл бұрын

    Thank you Sandeep.

  • @kmahim82
    @kmahim825 жыл бұрын

    now how r we supposed to plot it?

  • @zemtechnology4474
    @zemtechnology44745 жыл бұрын

    Nice information

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Thanks Zaman.

  • @elilukeskingdom7439
    @elilukeskingdom74395 жыл бұрын

    Perfect! Thank you.

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    My pleasure Todd.

  • @ChopsB8X
    @ChopsB8X2 жыл бұрын

    Thanks for a great video! What do you mean in your other comments to swap b2-a2 with networkdays to remove weekends. So confused! 🥺

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Thank you. B2-A2 returns all days between two dates. NETWORKDAYS is a function that returns only the working days. It allows you to specify the weekend days and any other additional non-working days such as holidays, illness, other projects etc. This function could be inserted instead if people wanted working days only.

  • @jungvelybusydog
    @jungvelybusydog3 жыл бұрын

    This is really helpful

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    Great to hear 👍 Thanks.

  • @jelveheskandari9586
    @jelveheskandari95863 жыл бұрын

    👏🏻👏🏻👍🏻👍🏻 was so helpful

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    I'm so glad! Thank you, Jelveh.

  • @hammadarain2725
    @hammadarain27252 жыл бұрын

    Good job done you Sir, too much helpful you video sir........

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Thanks and you're welcome, Hammad.

  • @ritztiolengco2964
    @ritztiolengco29643 жыл бұрын

    Is it possible to get the average of the result?

  • @nopphapadolj.2397
    @nopphapadolj.2397 Жыл бұрын

    Very helpful , Thanks

  • @Computergaga

    @Computergaga

    Жыл бұрын

    You're welcome 👍👍

  • @majidsiddique8227
    @majidsiddique82275 жыл бұрын

    Excellent

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Thank you Majid.

  • @user-nc2or9xu2h
    @user-nc2or9xu2h2 күн бұрын

    great video thanks for sharing it

  • @Computergaga

    @Computergaga

    2 күн бұрын

    Glad you enjoyed it. Thank you!

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

    Hi, Great video....is there an easy way to show days hrs and mins from the calculation in separate cells?

  • @Computergaga

    @Computergaga

    Жыл бұрын

    Sure. Instead of combining the results, you can write separate formulas for each cell/column.

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

    hello, sir when I apply this formula, hours and minutes are showing perfectly but day is not showing. it shows something weird? how solve this. and one more thing when adding zero before day and months when shifting to another cell the zero disappears how to solve this as well?

  • @nournmonykosoma6614
    @nournmonykosoma66143 жыл бұрын

    Thank you dear but I have one more to clear, how to calculate the average of both difference day and time?

  • @jessicaspinuzza3345
    @jessicaspinuzza33456 жыл бұрын

    How do I get the negatives to appear red. I'm not sure how to build the custom formatting

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    In custom formatting, whatever you type after the first semicolon is the negative formatting. So you could enter something like 0;[Red]-0 for negative numbers to have red and a minus sign before them. You can see this on this video - kzread.info/dash/bejne/gYyrl7pmeLDdmbg.html

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

    How to exclude Downtime or Non-working hours from two different dates & time while calculating Time Spent? Please help.

  • @lynrun7375
    @lynrun73752 жыл бұрын

    Thanks ur such a big help ☺️

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    You're welcome. Happy to help.

  • @PinkyPurpleGalaxy
    @PinkyPurpleGalaxy4 ай бұрын

    Thank you so much

  • @Computergaga

    @Computergaga

    3 ай бұрын

    You're most welcome

  • @vasiliskosmas1616
    @vasiliskosmas16164 жыл бұрын

    thanks a lot

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    You're very welcome, Vasilis.

  • @valcharles-pierre5684
    @valcharles-pierre56844 жыл бұрын

    How would you be able to get the average duration for multiple entries using your format?

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    This technique provides an answer formatted as text so the average is not possible. You would need a different technique to calculate the time elapsed.

  • @Dexter101x
    @Dexter101x5 жыл бұрын

    Awesome

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Thank you.

  • @WorldViralVideo4
    @WorldViralVideo42 жыл бұрын

    Thanks 👍

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    You're welcome.

  • @vivekanandhanrajendran9639
    @vivekanandhanrajendran96399 ай бұрын

    Thank you

  • @Computergaga

    @Computergaga

    9 ай бұрын

    Welcome!

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

    How can I calculate the elapsed time in days hrs and mins as just minutes

  • @danieladebayo6714
    @danieladebayo67146 ай бұрын

    Good job.

  • @Computergaga

    @Computergaga

    6 ай бұрын

    Thank you very much Daniel.

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

    how do i exclude weekends from this?

  • @jackychawla5422
    @jackychawla54227 жыл бұрын

    please upload some other advance videos on indirect function

  • @Computergaga

    @Computergaga

    7 жыл бұрын

    No problem Jacky. Will have a video soon.

  • @jackychawla5422

    @jackychawla5422

    7 жыл бұрын

    thank you sir ________

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

    How can you get average of the two to demonstrate day, hour and minutes

  • @JamieScott77
    @JamieScott774 ай бұрын

    Thanks for sharing this forumal. Complex but I learnt a lot. Now.... What if we want to show the result in WORKING DAYS (Mon-Fri) and TIMES (9-5PM)

  • @user-vw2ws2vh7t
    @user-vw2ws2vh7t11 ай бұрын

    This is great but it isn’t working on my sheet 🙈 typed exactly like yours, same spaces and everything. Any advice? Could it be that my baby excel version is too old?

  • @Computergaga

    @Computergaga

    11 ай бұрын

    You version will be fine. This function is not new. I would check the formula again. There will be a difference. Do you receive a specific error? Are you based in Europe, as you may need ; instead of ,?

  • @ericraya6890
    @ericraya689011 ай бұрын

    Help me a lot!

  • @Computergaga

    @Computergaga

    11 ай бұрын

    Awesome!

  • @MrSajeer100
    @MrSajeer1003 жыл бұрын

    Thanks

  • @Computergaga

    @Computergaga

    3 жыл бұрын

    You're welcome, Sajeer.

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

    How to calculate the difference between 2 date/time ranges in business days? For example, cell A2: 07-Jul-23 18:00hrs and B2: 09-Jul-23 10:00hrs The result in C2 should reflect "00 Days 06 Hours" since Saturday and Sunday must be completely excluded in the calculation. I tried all possible options including chat GPT but failed in getting the formula😢

  • @fuadabdullayev
    @fuadabdullayev5 жыл бұрын

    how can i solve time subtracting when i subtracted 10:00 AM and 10:20 AM i want to get 20 minutes in result but i get 23:40

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    It should be fine. If 10:20 was in cell A1 and 10:00 was in cell A2 then = A1-A2 is 00:20

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

    hello sir, when is use this formula days, hours ,and minutes shows but days are not showing as it appears on your screen. could please tell me how to solve and why?

  • @carlosalfonso7504
    @carlosalfonso75046 жыл бұрын

    Hello, I have a question? After we get the "Difference" in: Days Hours Minutes, how can we get the AVERAGE of those "Differences" in: Days Hours Minutes as well, because it gives me an error when I use AVERAGE.

  • @Computergaga

    @Computergaga

    6 жыл бұрын

    Yes the answer contains text strings such as " days" so AVERAGE cannot work with it. You would need to calculate the difference (could be a different column) with just simple B2-A2 formula. Then use the formula from the video on the AVERAGE answer from those responses to tidy it up into days, hours and minutes.

  • @carlosalfonso7504

    @carlosalfonso7504

    6 жыл бұрын

    Thank you so much, that will work great! Thanks for all your lessons, they make a huge difference in the way I use Excel!!!

  • @CoryStJohn
    @CoryStJohn4 жыл бұрын

    Can you do this with 4 date and time entries instead of 2?

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Sure. You could find the difference between any dates you. Obviously difference is always between two things, but then you could add the difference between two others or whatever your goal is.

  • @bazz3244
    @bazz32444 жыл бұрын

    What if in this example the end date is before the start date. It's for a planned and actual date and time for an event happening

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Maybe test it with an IF first to check if the end date is later or not. Then you will have the option of doing the formula like in the video, or in reverse to show being ahead of schedule.

  • @jlopez327
    @jlopez3277 ай бұрын

    Wow you are amazing

  • @Computergaga

    @Computergaga

    7 ай бұрын

    Thank you 😊

  • @bryanbaxter3558
    @bryanbaxter35584 жыл бұрын

    Is there a way to total the difference column?

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    The result here is text so cannot be totalled. You would need to total the separate elements (days, hours etc) separately to get your total.

  • @myarnie1950
    @myarnie19502 жыл бұрын

    works brilliantly but is there a way to have the result update automatically? thanks

  • @Computergaga

    @Computergaga

    2 жыл бұрын

    Great! But the closest you can get to automatic is some VBA code to run on intervals.

  • @tamelastaton1761
    @tamelastaton17614 жыл бұрын

    What format should you use for the dates and times?

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    The dates and times can be in any date and time format. As long as Excel recognises it as a date and time. The answer is text.

  • @raymarreyes2208
    @raymarreyes22084 жыл бұрын

    Ctrl+Shift+Alt+; Shortcut key works on that formula .

  • @ibrahimsbarry4766
    @ibrahimsbarry47665 жыл бұрын

    great work

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Thank you Ibrahim.

  • @ibrahimsbarry4766

    @ibrahimsbarry4766

    5 жыл бұрын

    @@Computergaga I have a question...my Job includes calculating the arrival date and time of a vessel and the departure date and time..I should calculate number of days and time the vessel stay in port..but i find it very difficult...thanks

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    Did the video not work for you? What trouble are you having?

  • @ibrahimsbarry4766

    @ibrahimsbarry4766

    5 жыл бұрын

    @@Computergaga yes it helps but you enter both the date and time on the same cell which i normally don't use. buh am checking you previous videos whether i will see the one that suites me. buh is great help thank

  • @Computergaga

    @Computergaga

    5 жыл бұрын

    If it helps Ibrahim, you could create a 'helper column' of dae and time by adding the 2 cells you have together. And then use that helper column in the formula. This helper column can be hidden and created solely for the calculation.

  • @emperorofup
    @emperorofup2 ай бұрын

    THANKS BUDDY, THIS ONE IS SAFE MY JOB😅😅😅

  • @Computergaga

    @Computergaga

    2 ай бұрын

    My pleasure!

  • @MatteoPozzoli
    @MatteoPozzoli4 жыл бұрын

    Does not work for me. Most probably not the correct data format for the date & time cells. What do you suggest? Thanks

  • @Computergaga

    @Computergaga

    4 жыл бұрын

    Select your date cells, and separately your time cells. and check the bottom right on your screen for a Sum. That will help check if there are identified as dates and times.

  • @MatteoPozzoli

    @MatteoPozzoli

    4 жыл бұрын

    @@Computergaga I have date and time in the same cell as from your example. in the bottom right display sum; date has no sense while hours are a correct sum

  • @RajnishYadavabc
    @RajnishYadavabc7 ай бұрын

    Sir will it work with Excel 365

  • @Computergaga

    @Computergaga

    7 ай бұрын

    Yes, absolutely

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

    What if the "end date" is blank or not filled, What will be the formula?

  • @1Gollywalk
    @1Gollywalk3 жыл бұрын

    Why would my result differ with exactly the same values. (88 Days23 Hours 50 minutes )

  • @paultaylor2522

    @paultaylor2522

    2 жыл бұрын

    Abrie i think you have the US date format not the UK format so it thinks you are doing between the 1st Feb 2017 and the 1st May 2017. UK format is 2nd Jan to 5th Jan 2017

Келесі