Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-07-2014, 09:40 AM
kconnolly kconnolly is offline How to Automatically Add/Delete Columns Based On Information Mac OS X How to Automatically Add/Delete Columns Based On Information Office 2013
Novice
How to Automatically Add/Delete Columns Based On Information
 
Join Date: Apr 2014
Posts: 4
kconnolly is on a distinguished road
Default 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!!
Attached Images
File Type: png Screen Shot 2014-04-07 at 12.30.33 PM.png (54.8 KB, 19 views)
Reply With Quote
  #2  
Old 04-07-2014, 09:43 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to Automatically Add/Delete Columns Based On Information Windows 7 64bit How to Automatically Add/Delete Columns Based On Information Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #3  
Old 04-07-2014, 09:56 AM
kconnolly kconnolly is offline How to Automatically Add/Delete Columns Based On Information Mac OS X How to Automatically Add/Delete Columns Based On Information Office 2013
Novice
How to Automatically Add/Delete Columns Based On Information
 
Join Date: Apr 2014
Posts: 4
kconnolly is on a distinguished road
Default

yup! see attached....
Attached Files
File Type: xlsx Timesheet Template1.xlsx (16.2 KB, 9 views)
Reply With Quote
  #4  
Old 04-07-2014, 11:22 PM
macropod's Avatar
macropod macropod is offline How to Automatically Add/Delete Columns Based On Information Windows 7 32bit How to Automatically Add/Delete Columns Based On Information Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #5  
Old 04-08-2014, 12:06 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to Automatically Add/Delete Columns Based On Information Windows 7 64bit How to Automatically Add/Delete Columns Based On Information Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

If you can live with some blank rows, the attached should get you on track
Attached Files
File Type: xlsx Timesheet Template1.xlsx (16.4 KB, 12 views)
__________________
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
Reply With Quote
  #6  
Old 04-08-2014, 06:20 AM
kconnolly kconnolly is offline How to Automatically Add/Delete Columns Based On Information Mac OS X How to Automatically Add/Delete Columns Based On Information Office 2013
Novice
How to Automatically Add/Delete Columns Based On Information
 
Join Date: Apr 2014
Posts: 4
kconnolly is on a distinguished road
Default

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!!
Reply With Quote
  #7  
Old 04-08-2014, 07:05 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to Automatically Add/Delete Columns Based On Information Windows 7 64bit How to Automatically Add/Delete Columns Based On Information Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

NP I added some data validation in cell D5. Hover over the cell and try entering a wrong date
Attached Files
File Type: xlsx Timesheet Template1.xlsx (16.6 KB, 16 views)
__________________
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
Reply With Quote
  #8  
Old 04-08-2014, 07:23 AM
kconnolly kconnolly is offline How to Automatically Add/Delete Columns Based On Information Mac OS X How to Automatically Add/Delete Columns Based On Information Office 2013
Novice
How to Automatically Add/Delete Columns Based On Information
 
Join Date: Apr 2014
Posts: 4
kconnolly is on a distinguished road
Default

that looks great! thank you so much!
Reply With Quote
Reply



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
How to Automatically Add/Delete Columns Based On Information Match information from 2 different columns gbaker Excel 2 08-18-2012 06:07 PM
How to Automatically Add/Delete Columns Based On Information 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
How to Automatically Add/Delete Columns Based On Information Add/Delete data in a Document based on User info vishal17 Word 5 04-14-2011 05:02 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft