+ Reply to Thread
Results 1 to 7 of 7

Working hours calculation

  1. #1
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Working hours calculation

    Hi,
    I have a file for roster and some simple calculations for working hours using simple formulas.
    Sometimes a man has a different schedule than his regular schedule, what I want is to calculate working hours.
    I attached a test file for your reference, in yellow is the correct calculation.
    Hope this can be done!
    Thank you very much for your help!
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Working hours calculation

    In AH12 and AI12, try these:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Your formulae used Z* and N* which will also find just Z and N, so you need to exclude those.
    You could replace the "<>Z" with "<>"&LEFT(AH$11,1) if you want the formulae to be able to be expanded to deal with other similar situations, but I thought that was a bit over the top for now .

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Working hours calculation

    The "*" in AH11:AI11 is throwing things off a bit. Try the following in AH12:

    =(COUNTIF($C12:$AG12,LEFT(AH$11,1)&"*")-COUNTIF($C12:$AG12,LEFT(AH$11,1)))*AH$10

    fill down, fill right. See attached:
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Working hours calculation

    Quote Originally Posted by Aardigspook View Post
    I thought that was a bit over the top for now .
    Ha! I had the same thought when crafting my initial effort, then I figured, "Why not?" and made the change.

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Working hours calculation

    Thanks a lot to both of you!
    that's it!

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Working hours calculation

    Glad to help, good luck!

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Working hours calculation

    You're welcome, glad to be of help and thanks for the rep.

+ 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. [SOLVED] Calendar Day & Working Hours Day Calculation
    By Shermaine2010 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2016, 09:34 AM
  2. Urgent Help Required On : Calculation of net working hours
    By Upendra2016 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 04-22-2016, 10:36 AM
  3. Normal working hours calculation by day
    By harignz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-26-2015, 12:32 AM
  4. [SOLVED] Working hours Calculation
    By match.chan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-22-2015, 04:11 AM
  5. Working hours calculation problem
    By Villalobos in forum Excel General
    Replies: 1
    Last Post: 02-14-2015, 04:45 PM
  6. Working Hours in a Working Week Calculation
    By amasson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2014, 11:09 AM
  7. Working hours calculation with 4 times
    By IKZOUHETNIETWETEN in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-10-2013, 07:32 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