+ Reply to Thread
Results 1 to 9 of 9

Date and time subtraction in excel 2003

  1. #1
    Registered User
    Join Date
    10-27-2012
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Date and time subtraction in excel 2003

    Hi there,

    i am looking for a formula for the below prob:

    27/10/12 06:10:00 subtract 27/10/12 06:12:00 = answer i want 00:12

    ---
    i tried with =B1-A1
    i tried with =TEXT(B1-A1,"h:mm:ss") but am getting #VALUE!

    pls help

    Thanks
    Husso

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Date and time subtraction in excel 2003

    Hi

    Looking at the above you are subtracting 06:12 from 06:10 as both dates are the same which would give you a negative value. I have never used 2003 so I dont know what capabilites you have. Try posting a sample. The cell you have the formula in have you changed that from general to time.

    Hope that helps

    Chris
    Last edited by dogberry; 10-27-2012 at 02:03 AM.
    Click my star if I helped Thanks

  3. #3
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Date and time subtraction in excel 2003

    Hi Husso,

    Format the cells with custom and a Type of dd/mm/yy - hh:mm:ss. Then use B1-A1.
    -------------
    Tony

  4. #4
    Registered User
    Join Date
    10-27-2012
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Unhappy Re: Date and time subtraction in excel 2003

    No luck! still getting #VALUE! even after changing the format of the cell...

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Date and time subtraction in excel 2003

    Quote Originally Posted by hu2sain View Post
    Hi there,



    27/10/12 06:10:00 subtract 27/10/12 06:12:00 = answer i want 00:12


    Thanks
    Husso
    How do you get 12 min when sutracting 10 from 12 ? B1-A1 should do the trick ( giving 02:00) . If not there is something we cannot see
    Please post a sample sheet

    @Beachrock : formatting does not change the underlying value and is of no consequence on the outcome

  6. #6
    Registered User
    Join Date
    10-27-2012
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Date and time subtraction in excel 2003

    oopss sorry typo error i just wanna subtract...

    EX: 27/10/12 06:10:00 subtract 27/10/12 06:12:00 = answer i want 00:02:00

    FYI: i have attached the sample.

    Thanks

    Husso
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Date and time subtraction in excel 2003

    i changed the format of the (green) cell.

    see the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Date and time subtraction in excel 2003

    Assuming your data is in A1 & B1:
    How about:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-27-2012
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Date and time subtraction in excel 2003

    Thank u Oeldere but i am not able to apply pls check the same excel although the format are same
    please let me know what is wrong
    thanks in advance.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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