Closed Thread
Results 1 to 4 of 4

Very complicated calculation of total hours worked (PLEASE HELP)

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    LA
    MS-Off Ver
    the latest
    Posts
    15

    Very complicated calculation of total hours worked (PLEASE HELP)

    Hi. I have a spreadsheet that shows the amount of time that somebody worked over the course of several years. The spreadsheet is about 30,000 rows long and very poorly organized (more on this below). I need to calculate the hours worked by this individual each day over the course of all the years shown on the spreadsheet, but there are NOT separate columns for time clocked in and time clocked out. If there were separate columns for those values, I could calculate the total hours worked on the first day/row, and then I could drag the formula down the entire spreadsheet.

    Unfortunately, as I said, there are not separate columns for the clock-in and clock-out times. Instead there is one column for both times. To make matters worse, the column that shows times does not only show time clocked in and time clocked out; it also shows the times at which various work tasks were performed throughout the day (between the clock-in and clock-out times).

    Anyway, my boss wants me to figure out the total number of work hours recorded on the spreadsheet, and I have no idea how to proceed. The column that shows times (clocked in, clocked out, etc.) is right next to a column that shows the date (which is entered as a number rather than a date). Also, the date is written in the format YYYYMMDD, just to make things more confusing. So this is what the spreadsheet looks like:

    DATE | TIME | ACTIVITY
    20080507 | 9:30 | clock-in/work task #1
    20080507 | 11:30 | work task #2
    20080507 | 2:30 | work task #3
    20080507 | 4:30 | clock-out
    20080508 | 9:30 | clock-in/work task #1
    20080508 | 11:30 | work task #2
    20080508 | 2:30 | work task #3
    20080508 | 4:30 | clock-out
    20080509 | 9:30 | clock-in/work task #1
    20080509 | 11:30 | work task #2
    20080509 | 2:30 | work task #3
    20080509 | 4:30 | clock-out

    (NOTE: The actual spreadsheet contains extreme variation between the days in terms of the hours worked on each day.)

    Anyway, given the strange format of this spreadsheet, I have no idea how to automatically calculate the total hours worked down the entire spreadsheet. The only thing that I can do is create formulas for each day (one day at a time) and then add up all the hours once I've calculated them day-by-day. The process would take months, which is too long for the demands of my boss. By the way, I have to do this for 7 other spreadsheets that are also about 30,000 rows long.

    Is there any way to create formulas that can 1) divide the rows into segments based on the DATE values 2) automatically calculate the total time elapsed within each segment/day (using the first and last time values for each segment/day, which would represent, respectively, time clocked-in and time clocked-out)?

    As you can see, this problem far exceeds my Excel capabilities. I truly appreciate any and all help that you guys can offer. Thank you.

  2. #2
    Forum Guru macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,481

    Re: Very complicated calculation of total hours worked (PLEASE HELP)

    Cross-posted at:
    http://www.msofficeforums.com/excel/...ed-please.html
    http://www.excelguru.ca/forums/showt...-(PLEASE-HELP)
    http://www.mrexcel.com/forum/excel-q...ease-help.html

    Please read the Cross-Posting policy in rule #8: http://www.excelforum.com/forum-rule...rum-rules.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,404

    Re: Very complicated calculation of total hours worked (PLEASE HELP)

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,404

    Re: Very complicated calculation of total hours worked (PLEASE HELP)

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-form...ease-help.html

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculation Hours worked
    By NeedExcelHelp82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-11-2014, 08:42 PM
  2. Replies: 6
    Last Post: 01-23-2012, 01:28 AM
  3. Number of hours worked calculation
    By kosciosco in forum Excel General
    Replies: 1
    Last Post: 06-03-2010, 11:52 AM
  4. Replies: 6
    Last Post: 05-03-2010, 12:03 PM
  5. Hours Calculation worked.
    By coolhit in forum Excel General
    Replies: 1
    Last Post: 12-01-2009, 08:06 AM
  6. Hours worked calculation
    By drathnal in forum Excel General
    Replies: 7
    Last Post: 12-03-2008, 01:06 PM
  7. total of hours worked
    By carolynkeene in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2006, 03:29 PM

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