+ Reply to Thread
Results 1 to 6 of 6

Calculation in a Rota - Help Needed Please

  1. #1
    Registered User
    Join Date
    01-03-2015
    Location
    Southampton, UK
    MS-Off Ver
    2013
    Posts
    3

    Red face Calculation in a Rota - Help Needed Please

    I have a monthly rota in excel, that has quite a few different shifts.

    I need the total number of hours to be calculated for each person but I don't have a great knowledge of Excel so finding this difficult to get it to work.

    I have a sheet with the rota and then a sheet with a list of the different shifts and the number of hours each shift totals. I just need the calculation to appear in a column on the rota.

    Is there anyone that can help? Even if I can email the rota to that person in order to show what I mean??

    Any help would be greatly appreciated.

    Thank you

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Calculation in a Rota - Help Needed Please

    Suggest that you attach a copy of the rota to your post. Click on Go Advanced to add an attachment.
    Martin

  3. #3
    Registered User
    Join Date
    01-03-2015
    Location
    Southampton, UK
    MS-Off Ver
    2013
    Posts
    3

    Re: Calculation in a Rota - Help Needed Please

    Thank you, I have attached this now
    Attached Files Attached Files

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Calculation in a Rota - Help Needed Please

    Try this user defined function.

    Please Login or Register  to view this content.
    Open the VBA editor by hitting Alt F11.
    Insert a new module with Insert - Module
    Paste in the above function
    Go back to the sheet by hitting Alt F11.

    In a CU7, enter =TotalHours(B7:AJ7) and copy down.

    Remember to save the workbook as a macro enabled workbook .xlsm

  5. #5
    Registered User
    Join Date
    09-01-2011
    Location
    georgia
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Calculation in a Rota - Help Needed Please

    This may work as a non-macro solution since I know not everyone is comfortable with macros. I'm not sure if this gives an accurate answer because the definition for "9to5", "5HR", "E/6" and a lot more are not defined in your second sheet. If you complete that table then this equation for Cell CU7 on Jan 2015 tab should count the occurrences of each entry defined on your second tab and add them together the correct number of times

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-03-2015
    Location
    Southampton, UK
    MS-Off Ver
    2013
    Posts
    3

    Re: Calculation in a Rota - Help Needed Please

    Thats great, thank you!

+ 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. Probability Calculation Help Needed
    By Kiffar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2012, 10:52 AM
  2. [SOLVED] Rota - Hourly Calculation
    By Premy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-25-2012, 04:17 PM
  3. staff rota date and day calculation
    By rich9989 in forum Excel General
    Replies: 7
    Last Post: 05-19-2010, 02:03 AM
  4. Rota Calculation
    By Chillieblitz in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-10-2010, 02:43 PM
  5. If & calculation formulas needed
    By Frazzfreeman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-18-2008, 08:07 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