+ Reply to Thread
Results 1 to 3 of 3

How to Create a Time Sheet that Fills Out Dates Automatically

  1. #1
    Registered User
    Join Date
    12-07-2010
    Location
    San Francisco
    MS-Off Ver
    Mac Excell 2011
    Posts
    2

    How to Create a Time Sheet that Fills Out Dates Automatically

    Hi,

    I'm creating a time sheet. I'd like users to be able to enter a pay period (by number) and have the form auto-fill the dates. So far I have the following for the cell of the first date:

    =IF(ISNUMBER(VLOOKUP(C6,Sheet1!A2:B27,2)),VLOOKUP(C6,Sheet1!A2:B27,2),"")

    There are 26 pay periods of 2 weeks each. C6 is the number of the pay period. 'Sheet1' has the numbers of the pay period (1 to 26) listed in one column and the starting date of each pay period in the second column). I used ISNUMBER so that it wouldn't display an error if nothing was entered in cell C6.

    It's working perfectly, but I wanted to make it a little fancier! Is there any way I could use the YEAR(NOW()) function so that I don't have to adjust 'Sheet1' in year 2011?

    Thanks for any help!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to Create a Time Sheet that Fills Out Dates Automatically

    depends where you start
    here's one way to test instead of today() in g1 change to a future date to see the results
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to Create a Time Sheet that Fills Out Dates Automatically

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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