+ Reply to Thread
Results 1 to 4 of 4

Formula to change work schedule from month to month

  1. #1
    Registered User
    Join Date
    03-29-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2002
    Posts
    2

    Formula to change work schedule from month to month

    Can anyone please help me?

    I am responsible for making the monthly employee work schedule. Currently, I now save a copy of the current month and change the file name to the next month. Then I go in the sheet and change the month and the days of the week on one row then the corresponding date on the row underneath.

    I also have to delete all the employees work schedules each day because that dated column no longer is valid for the next month as it belonged to the current month. Is there any shortcut to my prehistoric method. I just know there is!

    Please help if you can,

    ib

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Formula to change work schedule from month to month

    posting a sample workbook might help. Replace all sensitive data with dummy data and provide a "before" and "after" scenario.

    cheers

  3. #3
    Registered User
    Join Date
    03-29-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Formula to change work schedule from month to month

    Here you go Teylyn

    Thanx
    Attached Files Attached Files

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Formula to change work schedule from month to month

    Hi, as a starting point:

    do you always work in Page Preview? Normal view is much easier on the eyes, I feel.

    Enter the first of the month in A1, i.e. 1/1/2010. Then in B1 enter

    =A1

    and then in C1

    =B1+1

    and copy across. This way, you can fill your day columns automatically

    Format A1 with custom format "mmmm"
    Format B1 to AF1 with custom format "d"

    This will then show the numbers you are seeing now.

    Whenever a new month rolls along, just change the date in A1 and away you go.

    The secondary sheets can take their date from RN!A1

    In row 2 enter in A2

    =A1

    in B2 enter

    =LEFT(TEXT(B1,"ddd"),2)

    and copy across

    I don't know what the significance of the red formatting is. You'd need to explain.

    Then, fire up the macro recorder, select cell B3, hit Ctrl-Shift-downArrow-RightArrow, delete key. Stop the macro recorder.

    Now you have a macro that deletes the core contents of the sheet.

    For months with less than 31 days, delete the last two days in the first sheet.

    In the next month, just copy the leftmost cell to the right for a cell or two.

    cheers
    Last edited by teylyn; 03-29-2010 at 04:57 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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