I have an Excel Workbook in which list of support, technical and administrative staff is entered. There is one sheet for each employee. Sheet name is same as employee name. Each sheet contains list of all support, technical and administrative staff. There is also an introduction sheet.
When the workbook is opened, it asks for a password and based on password, Introduction Sheet and relevant employee’s sheet become visible. (To accomplish this, I have used the technique mentioned in this thread; thread68-924496 )
Columns in an employee’s sheet are as follows:
A = Employee Number
B = Name
C = Job Title
D = Staff Category
E = Behavior Rating
…
…
I = Behavior Rating %
Column E contains Data -> Validation -> List
(Source = Ratings (Values can be A, B or C))
Cells I3, I4 and I5 have the following formulas:
What I need to achieve is when an employee enters ratings for other staff in column E, Ratings A and C should not exceed 30% and Rating B should not exceed 40%.
When the workbook is opened, it asks for a password and based on password, Introduction Sheet and relevant employee’s sheet become visible. (To accomplish this, I have used the technique mentioned in this thread; thread68-924496 )
Columns in an employee’s sheet are as follows:
A = Employee Number
B = Name
C = Job Title
D = Staff Category
E = Behavior Rating
…
…
I = Behavior Rating %
Column E contains Data -> Validation -> List
(Source = Ratings (Values can be A, B or C))
Cells I3, I4 and I5 have the following formulas:
Code:
I3 = CEILING(((COUNTIF(E:E,"A")/(COUNTA($D$3:$D$40)-1)))*100,1)
I4 = CEILING(((COUNTIF(E:E,"B")/(COUNTA($D$3:$D$40)-1)))*100,1)
I5 = CEILING(((COUNTIF(E:E,"C")/(COUNTA($D$3:$D$40)-1)))*100,1)
What I need to achieve is when an employee enters ratings for other staff in column E, Ratings A and C should not exceed 30% and Rating B should not exceed 40%.