VBA, Formula, or Data Validation Excel form

username_rand

New Member
Joined
Jan 27, 2019
Messages
20
Hi, i am working on a new employee performance evaluation form. Managers will fill the form for each of their employees semi-annually (attached). Each employee should have a minimum of 5 objectives and a maximum of 10 per each 6-month period. In the old evaluation form, each objective had a weight (out of 100%) in order to ensure fairness and accuracy of the evaluation, so if the manager entered 6 objectives, they would have to assign a weight to each objective ensuring that the total sum of the weights is 100%. Now we want to follow this same approach but instead of actual weights, managers have to enter Priorities (in wording) but each of these priorities represent a weight that we as the creators of the form know but managers & other employees don't. Priorities and their meaning are as follows:
1. Very High = 20%
2. High = 15%
3. Medium = 10%
4. Low = 5%
the issue here is how can we make sure that priorities chosen by the managers always end up being 100% in terms of weight, never more and never less, to ensure the results are accurate? and how to ensure that whether the number of objectives is 5, 6, 7, 8, 9, or 10, that there are constraints to how many times managers can assign these priorities all in relevance to the weights they represent.

1698326803953.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I didn't see any responses so I thought I would take a quick stab at this one.

If you want to avoid macros and just do things within the sheet, I would make some additional columns that would be hidden. I believe your sheet uses A to M so the added columns are N to Q (adjust based on your actual layout). To make this work best, I would use List defined Data Validation on Column C and make it look at Column L for the accepted values. This way you don't have to account for various spellings. Set Column N to count the number of instances of each Priority listing. Column O is a field for you to define a limit for the number of occurrences allowed for each Priority. Column C then has conditional formatting where if the number of occurrences exceeds the limit, the cells will turn Red. For the scoring, I would use VLOOKUP (inside an IF) to determine the Priority Score based on Column C. At the bottom of that column (I used cell P15), I added a sum to see if the percentage exceeded 100%. Then Column Q calculates the weighted score for each line so that it always adds up to 100.

Not sure if you needed this part:
Cells C15:J15 are then merged and set to word wrap. Then I added a formula to check if the Priority Score exceeds 100. If it does, it shows a message that the total priority score exceeds 100%. However this may not be necessary with the Limit of Occurrences included above. The only way for them to reduce this score below 100 would be to know the relative scores for each priority. You can leave this section off if it is not needed.

Hope this helps.

temp macro work.xlsm
ABCDEFGHIJKLMNOPQ
1
2
3#objectiveprioritytvtv min or maxmethodevalactual mvob compscore based on priorityprioritiesscoreOccurancesLimit of Occurancespriority scoreweighted score
41very highvery high20122033.33333333
52highhigh15131525
63mediummedium10141016.66666667
74lowlow53558.333333333
85low458.333333333
96low58.333333333
10700
11800
12900
131000
14
15 60
Sheet12
Cell Formulas
RangeFormula
P4:P13P4=IF(C4="",0,VLOOKUP(C4,$L$4:$M$8,2,FALSE))
Q4:Q13Q4=P4/$P$15*100
N4:N7N4=COUNTIF($C$4:$C$13,L4)
N8N8=COUNTIF($C$4:$C$13,"")
C15C15=IF(P15>100,"The objectives exceed 100%. Please reduce the priority or number of objectives." & "The current total value is: " & P15,"")
P15P15=SUM(P4:P13)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:C13Expression=AND(C4=$L$4,$N$4>$O$4)textNO
C4:C13Expression=AND(C4=$L$5,$N$5>$O$5)textNO
C4:C13Expression=AND(C4=$L$6,$N$6>$O$6)textNO
C4:C13Expression=AND(C4=$L$7,$N$7>$O$7)textNO
Cells with Data Validation
CellAllowCriteria
C4:C13List=$L$4:$L$8
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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