+ Reply to Thread
Results 1 to 19 of 19

How to calculate time difference in Excel

  1. #1
    Registered User
    Join Date
    10-02-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    17

    How to calculate time difference in Excel

    Dear Experts please help, Answer should be in E2, I am using excel 2013... thanks in advanceClipboard02.jpg
    Attached Images Attached Images
    Last edited by feroz763; 02-05-2018 at 02:40 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate time difference in Excel

    Result of what? Difference of what?

  3. #3
    Registered User
    Join Date
    10-02-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    17

    Re: How to calculate time difference in Excel

    If i enter time in a2 example 05:00 am result should be 02:30 am ( Two hour and thirty minutes difference )thank you all in advance.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to calculate time difference in Excel

    What you need to understand about dates and times in excel is…

    a date is just a number representing the number of days passed since 1/1/900...and then formatted in a way that we recognize as a date. So, for instance, today (Sat 03 Feb 2018) is actually 43134

    Time is actually a decimal part of 1 (day), so 06:00 AM is 0.25, 12 noon is 0.5 and 18:00 (or 6 PM) is 0.75

    So to do what you want, use something like...
    =A2-2.5/24
    or
    =A2-TIME(2,30,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate time difference in Excel

    It doesn't work: =A2-TIME(Two hour and thirty minutes)

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to calculate time difference in Excel

    Quote Originally Posted by sandy666 View Post
    It doesn't work: =A2-TIME(Two hour and thirty minutes)
    Perhaps you entered it wrong?
    O
    P
    32
    5:00 AM
    33
    2:30 AM
    =O32-2.5/24
    34
    2:30 AM
    =O32-TIME(2,30,0)


    And please keep your eye-rolls to youself

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate time difference in Excel


    @Ford,
    It was joke
    but first I should say this is Excel not a Word

  8. #8
    Registered User
    Join Date
    10-02-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    17

    Re: How to calculate time difference in Excel

    Hi sir, This is what i am getting in excel 2013 - #VALUE!
    when i enter this formulas =A2-2.5/24
    or
    =A2-TIME(2,30,0)

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate time difference in Excel

    maybe use: =A2-TIME(2;30;0) (because of local settings)

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to calculate time difference in Excel

    Quote Originally Posted by sandy666 View Post

    @Ford,
    It was joke
    but first I should say this is Excel not a Word
    OK

    Also, I saw no reference to Word, am I missing something here?

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate time difference in Excel

    Excel: 1.293
    Word: one thousand two hundred and ninety-three

  12. #12
    Registered User
    Join Date
    10-02-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    17

    Re: How to calculate time difference in Excel

    Guys please help.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate time difference in Excel

    Did you read post#9?
    or
    attach excel file with your problem

  14. #14
    Registered User
    Join Date
    10-02-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    17

    Re: How to calculate time difference in Excel

    Clipboard02.jpg Answer should be in E2, I am using excel 2013... thanks in advance

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate time difference in Excel

    this is not an Excel file

    Pictures are useless. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.
    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.
    Include in the attachment any code you're currently using (whether it works or not) and an After of what you wish the output to be.


    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to calculate time difference in Excel

    If you tried any of the suggestions, and they didnt work, what was wrong?
    If you didnt try them yet, then please do so.

    Either way, post a sample workbook, not a pic, please

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to calculate time difference in Excel

    alternatively you can use PowerQuery (add-in for Ex2013)
    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    10-02-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    17

    Re: How to calculate time difference in Excel

    I have attached excel file please check... thanks
    Attached Files Attached Files

  19. #19
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to calculate time difference in Excel

    All the suggestions offered work however now you have introduced another column with the 2:30 in. Which is why posting your workbook to start with would have saved a lot of time

    =A2+B2/24

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculate time difference in Excel
    By heyz123456 in forum Excel General
    Replies: 8
    Last Post: 01-09-2018, 10:23 AM
  2. How to calculate time difference in Excel
    By Terressa in forum Excel General
    Replies: 1
    Last Post: 07-24-2015, 08:10 AM
  3. calculate time difference
    By denvernuggets15 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2012, 12:30 AM
  4. Replies: 3
    Last Post: 03-02-2012, 08:18 PM
  5. How to calculate time difference
    By DeepakS in forum Excel General
    Replies: 10
    Last Post: 09-16-2011, 08:54 AM
  6. Excel Function to calculate difference in time in same cell
    By jr white in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2007, 01:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1