+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Calculations on a cell containing hours and minutes

  1. #1
    Registered User
    Join Date
    07-06-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Calculations on a cell containing hours and minutes

    I'm working on a time sheet application. I have the start time and end time. I also have a place for "non billable time". That would include lunch or any other time off.

    I want to be able to calculate the time difference between start time and end time AND subtract the non-productive time from it.

    I have no problem with the calculation of hours and minutes between the start time and the end-time. But when I try to use the non-billable time in any calculation, it gives me a #VALUE error.

    Can anybody help?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    369

    Re: Calculations on a cell containing hours and minutes

    enter the time to reduced in a cell then just add the cell to the formula do delete the non billable time

  3. #3
    Registered User
    Join Date
    07-06-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Calculations on a cell containing hours and minutes

    I've tried that any number of ways. The non-billable time is defined as time type 13:30. When you enter the :30 into the non-billable time, it gives the #VALUE error. I've tried defining it as custom [h]:mm for instance and it gets the same result. I attached the spread sheet to my original post. Try to use it by putting some value into cell B14 and see what happens. I've tried entering the half hour as .5 but Excel translates that into 12:00 as in a half of a day.

    So I'm still asking for help.

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

    Re: Calculations on a cell containing hours and minutes

    See row 22 (see the example).
    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.

  5. #5
    Registered User
    Join Date
    07-06-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Smile Re: Calculations on a cell containing hours and minutes

    OK. This works. But so sum up, the secret is in how you enter the non-billable time. ":30" doesn't work for a half-hour. But if you enter it as "0:30" it works. Internally, it thinks you are entering 12:30 am, but it does calculate properly.

    Thank you so much. That was a solution I had not tired.

    bbs10r

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

    Re: Calculations on a cell containing hours and minutes

    Please Login or Register  to view this content.
    That was a solution I had not tried?.



    See row 22 (orange cells) (see the example).
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-06-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Calculations on a cell containing hours and minutes

    Indeed. That's what we call a "fat finger". Tried was the word.

    bbs10r

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

    Re: Calculations on a cell containing hours and minutes

    And the change of formula in #6.

+ 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