+ Reply to Thread
Results 1 to 7 of 7

Help with formula for adding and subtracting time

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    regina, sask
    MS-Off Ver
    Excel 2007
    Posts
    4

    Help with formula for adding and subtracting time

    Hi there I am new to this forum and haven't had to use Excel since high school so I am having a difficult time with this formula. As you can see by the worksheet I uploaded I am trying to subtract lunch minutes (column F) from Total Hours at work (column E) and have this result shown in Column G.

    Lunch breaks are normally 30 minutes however I cant even get Excel to read 30 minutes accurately

    I would like to be able to type in just the minutes like 30mins or 45 mins for lunch and have that subtracted from the total hours.

    Any help would be greatly appreciated and hopefully I am being clear on my problem and my needs. Thanks again in advance

    Adorella
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Help with formula for adding and subtracting time

    Enter the lunch break as 0:30 for 30 minutes, or 0:45 for 45 minutes, and so on.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-13-2013
    Location
    regina, sask
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with formula for adding and subtracting time

    That helps a ton Pete however the people who will be using this program to send in their timecards are even more excel illiterate than i am so to get them to remember to write it as 0:30 will be a struggle LOL! Is there no way to write it as simply 30 and have excel switch it to the correct value?

    And thanks again

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Help with formula for adding and subtracting time

    Format column F as General, and put this formula in G13:

    =E13-F13/60/24

    Then you can enter 30 or 45 in column F, and G will show the correct answer.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    08-13-2013
    Location
    regina, sask
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with formula for adding and subtracting time

    Also one more thing.....when adding up the totals on e30....as soon as the number of hours in columns e13 through e28 reaches 24 it resets to 0. So it isnt actually keeping a total of hours worked its just tracking time. I know my formula must need to be changed so any help is much appreciated. And thanks for putting up with very newbie questions

    Adorella

  6. #6
    Registered User
    Join Date
    08-13-2013
    Location
    regina, sask
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with formula for adding and subtracting time

    WOOT I figured it out just had to change the h:mm to [h]:mm. Thanks again Pete for all your help!!!!

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Help with formula for adding and subtracting time

    Glad you got it sorted. You can mark the thread as Solved (if you think that it is) by clicking on the Thread Tools button above your first post.

    Pete

+ 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. Adding/Subtracting military time
    By criticalmass in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-20-2013, 03:38 PM
  2. IF functions when adding and subtracting time
    By allan223 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2012, 11:09 PM
  3. Adding/Subtracting Time Help...
    By killertofu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2006, 04:49 PM
  4. adding/subtracting time
    By griffee@email.com in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2006, 10:50 AM
  5. adding & Subtracting date & time in VBA
    By jasonsweeney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2005, 12:06 AM

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