+ Reply to Thread
Results 1 to 9 of 9

Monthly Schedule total working hours calculating

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    Istanbul
    MS-Off Ver
    2013
    Posts
    5

    Monthly Schedule total working hours calculating

    Hello Forum,

    There is a xlxs worksheet attachment that I couldn't figure out how to do. We have a monthly schedule, three persons Staff 1/2/3. I'd like to calculate total working hours a month to the daily working hours, but I couldn't handle it anyhow. A help would highly be appreciated.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Monthly Schedule total working hours calculating

    The following function should do it.
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Monthly Schedule total working hours calculating

    Or you could use worksheet functions. for instance array formula (committed with Ctrl+Shift+Enter) for first days of staff1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Of course all hours for your staff1 would be (again - it is array formula):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    11-17-2014
    Location
    Istanbul
    MS-Off Ver
    2013
    Posts
    5

    Re: Monthly Schedule total working hours calculating

    Hi pjwhitfield,

    I am so glad for the solution you offered me. However, If you told me how to apply in the sheet, I would be really appreciated for this.

  5. #5
    Registered User
    Join Date
    11-17-2014
    Location
    Istanbul
    MS-Off Ver
    2013
    Posts
    5

    Re: Monthly Schedule total working hours calculating

    Thank you so much Kaper for this even you arranged it for me. That was exactly what I was looking for. Thank you very much again.

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Monthly Schedule total working hours calculating

    Quote Originally Posted by bluecost View Post
    Hi pjwhitfield,

    I am so glad for the solution you offered me. However, If you told me how to apply in the sheet, I would be really appreciated for this.
    Add the code into a Module within your VBA (Alt-F11, then Insert>Module and then Paste code in. Then use it as any other function...eg:
    =Total_Hours("A1:O1")

  7. #7
    Registered User
    Join Date
    11-17-2014
    Location
    Istanbul
    MS-Off Ver
    2013
    Posts
    5

    Re: Monthly Schedule total working hours calculating

    I put your VBA as you directed, after that saved in macro-free version. I applied this =Total_Hours("B3:O3") for Staff 1, but I got a value error, pjwhitfield.

  8. #8
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Monthly Schedule total working hours calculating

    The secrets in the words "Macro-free version", it needs to be saved in a Macro worksheet

  9. #9
    Registered User
    Join Date
    11-17-2014
    Location
    Istanbul
    MS-Off Ver
    2013
    Posts
    5

    Re: Monthly Schedule total working hours calculating

    Quote Originally Posted by pjwhitfield View Post
    The secrets in the words "Macro-free version", it needs to be saved in a Macro worksheet
    It is my mistake pjwhitfield; I already saved it as xls, and didn't work.

+ 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: 5
    Last Post: 08-19-2013, 06:37 PM
  2. Replies: 0
    Last Post: 02-07-2013, 08:42 PM
  3. Replies: 6
    Last Post: 05-03-2010, 12:03 PM
  4. Calculating total shift hours in a schedule
    By mgandy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2008, 10:52 AM
  5. [SOLVED] How do I set up monthly random work schedule for 60 hours monthly
    By The Ace of the Base in forum Excel General
    Replies: 0
    Last Post: 04-04-2006, 02:40 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