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!
Bookmarks