Right click on the Tab for sheet1 and choose View Code...
The code will fire every time the data in column B is changed. It will display a warning message if too many 5s have been entered in the column. The 5 limit is based on 0.15 times the number of employees, rounded up to the next whole number, using the CEILING() function. The code will then clear the last 5 entered.
The code
I non-invasive (aka no macro) option would be to use conditional formatting. It won't prevent the user from entering too man 5s put it would give a visual alert. The attached spreadsheet shows both methods. Columns B uses the macro column C uses the conditional formatting method. Under the current set up all 5s will be highlighted once there are too many 5s.
Bookmarks