TIme Sheet Restricting Entry to only allow 5 workdays instead of 7

opera6th

New Member
Joined
Oct 22, 2014
Messages
2
Hello,

I am setting up a time sheet for my employers to use. There are 7 days in a week but I want to set it up in such a way that the user can only input work hours for 5 days a week and prohibit them from inputting anything on the other 2 days. For example, if Employee A worked Mon-Fri, then the user (employer) can enter the work hours for Mon-Fri but are not able to enter work hours for Sat and Sun. I want those cells to be inactive/prohibited.

Is there a formula where if ANY 5 cells are active, the other 2 will be inactive/prohibited?

This is super hard.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
You can use data validation. I am assuming they are entering the number of hours they work on each day. If the days of the week are in columns A to G on row 4 then highlight the cells and enter the below formula in the formula box of the custom criteria.

Code:
=COUNTA($A4:$G4)<6

There are many other options with data validation to customize the error message, etc.

https://support.office.com/en-US/Ar...2c1-9d76-eff3ce5f7249?ui=en-US&rs=en-US&ad=US

Hope this helps,
David
 
Upvote 0
Thanks, David. Actually, it's the number of days they can work per week. So, they can only work 5 days a week. Hence, I would like a data validation that only allows 5 cells to have input (for 5 days a week) and an error alert to prohibit the user from entering data in the other 2 cells. Does the formula above still work?
 
Upvote 0
If I understand you correctly, then yes. Put Sun - Sat in columns A-G and set up the data validation. If you enter something into columns A-E, when you try to enter something in column F the data validation won't let you.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top