#1
|
|||
|
|||
How to Automatically Add/Delete Columns Based On Information
Hi! I am currently creating a time sheet for our employees in Excel. Employees hand in their time sheets twice a month - the 15th (for period 1st-15th) and the last day of the month (for period 16th-29th/30th/31st). I have entered formulas so all the employee has to do is enter the pay period start date and Excel automatically populates the pay period end date, the "Day" column and the "Date" column. This works out PERFECT for a month with exactly 30 days. Is there anyway to tell Excel to add that extra row to adjust for months that have 29 or 31 days? Any help would be much appreciated!! Thank you!! |
#2
|
||||
|
||||
Hi
could you please post a sample sheet (not a pic) please?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
yup! see attached....
|
#4
|
||||
|
||||
Presumbaly, you also won't want people inputting anything on 30 February - ever - or 29 February in most years...
The only way you can conditionally display/hide such rows (which doesn't stop people inputting data into them) or add/delete such rows (which does stop people inputting data into them) is via a macro. Such a macro can be tied to workbook opening, so that it checks the date and adds/deletes rows as applicable.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
||||
|
||||
If you can live with some blank rows, the attached should get you on track
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#6
|
|||
|
|||
Thank you SO much! The timesheet looks great and works out awesome!
I really appreciate the time you put into this...thank you thank you!! |
#7
|
||||
|
||||
NP I added some data validation in cell D5. Hover over the cell and try entering a wrong date
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#8
|
|||
|
|||
that looks great! thank you so much!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and Delete Rows based on a range | damaniam | Excel Programming | 2 | 03-12-2014 06:06 AM |
Match information from 2 different columns | gbaker | Excel | 2 | 08-18-2012 06:07 PM |
Automatically inserting information into report | joughin | Word | 3 | 05-15-2012 09:12 PM |
how to create two columns based on a certain criterior from the original two column? | where_pc | Excel | 3 | 06-13-2011 10:39 AM |
Add/Delete data in a Document based on User info | vishal17 | Word | 5 | 04-14-2011 05:02 PM |