+ Reply to Thread
Results 1 to 7 of 7

Calculate Hours Worked between two dates

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Calculate Hours Worked between two dates

    Good Day People,

    I hope that you can maybe help me. I have an excel spreadsheet that calculates all hours worked on a weekly basis from employees. I want now to make it easyer and include two cells that the dates can be filled in. If there are two dates filled in, then I want it to work out for me the hours worked between that two dates.

    Then I also have an coulmn that has the amount of employees for one specific date. Now I want it to work out between the above mentioned two date the maximum amount of employees between that two dates filled in.

    I hope really that I make sence.

    Please see the attachement as a sample.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Calculate Hours Worked between two dates

    Hello
    If using 2007 or later you could use Sumifs but as your profile says 2003 then try the Sumproduct function. In cell A8:

    Please Login or Register  to view this content.
    and in cell A13:

    Please Login or Register  to view this content.
    Hope this helps.
    DBY

  3. #3
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Calculate Hours Worked between two dates

    Try this:

    An honour to the forum expert Ace_XL that provided me with this excelent formula.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-31-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Calculate Hours Worked between two dates

    Hi, Thanks DBY, the one for working the total hours out between the two dates worked great. Thanks a million. The A13 cell, unfortunately I don't need the total amount for that period, but I need the highest amount of employees (maximum) between the two dates. So if it is 5 for the one day and next day it's 4 and then next day 2 then maybe 8 employees then 5 employees, then the awnser must be 8 and not 24.

    But thanks alot for your assistance.

    Quote Originally Posted by DBY View Post
    Hello
    If using 2007 or later you could use Sumifs but as your profile says 2003 then try the Sumproduct function. In cell A8:

    Please Login or Register  to view this content.
    and in cell A13:

    Please Login or Register  to view this content.
    Hope this helps.
    DBY

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Calculate Hours Worked between two dates

    Sorry, misunderstood. Try in cell A13:

    Please Login or Register  to view this content.
    The answer with the current dates is 4. Is that what you're looking to do?
    DBY

  6. #6
    Registered User
    Join Date
    07-31-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Calculate Hours Worked between two dates

    Wow, great your my Hero, Thanks a million. It's working great.

    Thanks Again


    Quote Originally Posted by DBY View Post
    Sorry, misunderstood. Try in cell A13:

    Please Login or Register  to view this content.
    The answer with the current dates is 4. Is that what you're looking to do?
    DBY

  7. #7
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Calculate Hours Worked between two dates

    You're welcome. Got there in the end.

    DBY

+ 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. Replies: 4
    Last Post: 02-12-2013, 07:01 AM
  2. Replies: 2
    Last Post: 02-11-2013, 02:26 PM
  3. Replies: 4
    Last Post: 06-26-2012, 02:19 AM
  4. Calculate Hours Worked
    By NewGirl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2009, 10:45 PM
  5. [SOLVED] CALCULATE HOURS WORKED
    By Calculation of hours worked. in forum Excel General
    Replies: 3
    Last Post: 01-20-2005, 02:06 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