+ Reply to Thread
Results 1 to 2 of 2

Insert days/dates from the 1st of the month in a register, its not that simple.

  1. #1
    Registered User
    Join Date
    04-13-2011
    Location
    Bicester
    MS-Off Ver
    Excel 2003,2010
    Posts
    37

    Insert days/dates from the 1st of the month in a register, its not that simple.

    Hi All, I am not sure if this is in the correct bit of the forum, not sure if it can be done with formulas or if it needs code or a combination.

    The sheet attached is a register I send out to our swim club, currently we have a 5 week register and send a new register ready to be used before the last one runs out, so on the register attached I would have sent out a new register before 4/11/12.

    Currently I run a marco from a master file that has all the names of the swimmers, this opens the register file and inputs all the data required for each squad, I have popup input boxes in the macro so I can input the 1st date of the month which has always been the first Monday in the month, I also input what month and year as this is how the file is automatically saved.

    My issue,

    I have been asked do the registers monthly, so I send out ready for the 1st of the month each time regardless of what day the 1st of the month is, normally not an issue but if you look at the attached file on the performance tab to start with you will see we swim twice on a Tuesday and swim and land train on a Thursday and Sunday and don't swim on a Friday.

    I can obviously put the 1st of the month in through the Macro and then get the day from that date.

    How can I get the rest of the month to fill across the days and dates?

    Added issues U can see,

    If the 1st of the month is a Friday.

    I need to do this for each squad and the all have different swim schedules as you can see from the attached sheet.

    I have been thinking about this for a while now and am really struggling.

    Hope someone can help.

    Darren
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Insert days/dates from the 1st of the month in a register, its not that simple.

    Well, this looks kinda quiet...

    Lots of ways come to mind. You appear to be fairly fluent in VBA, and that would be my recommendation. All of the 'double practice' and 'if Friday' checks can be done in code.

    My path would be something along the lines of every schedule sheet having AM and PM slots for every day. Then I'd run the existing macro to fill in the dates and names. Frankly, I wouldn't care if there were dates on the table without practice times, but it seems you value the ability to remove any days without practices on a sheet. If so, then a simple macro that would search for days without any practice times and then either hide or delete those columns. I would opt for delete, but that means you need to keep a 'base' sheet.

    Attached is another method that uses standard excel functions. It may be able to be improved, but it works. I would recommend having the 'Super Table' either in a separate worksheet (where you could then reference them from each 'Performance' sheet) or in some hidden rows in the 'Performance' sheet.
    Attached Files Attached Files
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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