+ Reply to Thread
Results 1 to 10 of 10

Time Sheet automatic dates stop at end of month

  1. #1
    Registered User
    Join Date
    04-04-2019
    Location
    Hampshire UK
    MS-Off Ver
    Office 365
    Posts
    4

    Question Time Sheet automatic dates stop at end of month

    Hello All,

    I am new here, I have some experience with Excel but I come and go like a bad smell, I will have an excel project and once completed it will be years before the next and get a massive amount of skill fade, and thought I would join to get some pointers in areas that are new to me or have forgotten.


    I am updating an old copy of a time sheet that has been around for years, every month someone edits the template and distributes it to all staff with the correct dates, I want to eliminate the need for this.

    I have made a start so when a user selects a month and year it fills the first date, then a separate formula to create the next date and so on.


    My issue is when i get to the last day of the month be it the 28th/30th/31st, I can't work out how to stop the next formula so it will go back to the 1st, using:
    Please Login or Register  to view this content.

    Is there a way for the formula to recognise this? I have had a google and seem to get lost and don't understand what they are showing.

    Thank you for your help in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Time Sheet automatic dates stop at end of month

    Maybe,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Time Sheet automatic dates stop at end of month

    Try:

    A5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A6:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-04-2019
    Location
    Hampshire UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Time Sheet automatic dates stop at end of month

    Nether have worked for me

    I have been trying to work it out after your first and what I have so far (But still not working as planned)

    Please Login or Register  to view this content.

    So If I break this down so you can see my problem now with me;


    IF The Date in A32+1's Day is Less then the day in A32 now then enter Blank, otherwise add a day to A32 to equal your cell


    What I need to write is if the date in A32 + 1 Day starts a new month then put a blank there otherwise add a day.

    I just need to think a little more out side the box

  5. #5
    Registered User
    Join Date
    04-04-2019
    Location
    Hampshire UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Time Sheet automatic dates stop at end of month

    I Finaly got it whoop whoop,

    Please Login or Register  to view this content.
    couldn't have done it without your help, you started me on the idea and I learnt from it, Thank you

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Time Sheet automatic dates stop at end of month

    You're welcome.


    Not sure why you are splitting the date into its components. A date is simply a number, so the next day is just date + 1.

  7. #7
    Registered User
    Join Date
    04-04-2019
    Location
    Hampshire UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Time Sheet automatic dates stop at end of month

    OK now I know that I will work on shortening it, Thanks for the heads up

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Time Sheet automatic dates stop at end of month

    OK, I have attached an updated sample file which will, hopefully, clarify the formulae that I proposed in my second post (Post #3). Sadly, the first attempt in Post #2 didn't work as expected or required.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-17-2019
    Location
    Virginia, USA
    MS-Off Ver
    2016
    Posts
    1

    Re: Time Sheet automatic dates stop at end of month

    How would I accomplish this for semi monthly timesheets where I need 16 lines to accommodate 31 day months but want the it to stop at the 15th? I am keying off of a period start date for the timesheet. This solution works for timesheets starting the 16th of the month but ont he timesheet starting the 1st it wfills in through the 16th. Thanks in advance for your help.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Time Sheet automatic dates stop at end of month

    @maryeh

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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. find time left in month.days unit between two dates(in YEAR.MONTH.DAY)
    By xcfeng95 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-21-2014, 12:55 PM
  2. Automatic Moving of data to corresponding month on Stock Report sheet
    By Nickvii7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2013, 01:34 PM
  3. Replies: 7
    Last Post: 01-17-2013, 12:55 PM
  4. Stop the automatic format of a time to Scientific
    By AlexRoberts in forum Excel General
    Replies: 4
    Last Post: 11-19-2010, 12:03 PM
  5. contract start / stop dates feed to budget by month
    By magnarex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2007, 07:52 AM
  6. stop automatic increment of dates
    By Susan C. in forum Excel General
    Replies: 2
    Last Post: 09-21-2005, 01:05 PM
  7. [SOLVED] How do I stop Automatic Sheet/Workbook protection
    By Kim from AZ in forum Excel General
    Replies: 3
    Last Post: 08-17-2005, 09:05 PM

Tags for this Thread

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