I am trying to jazz up a work status spreadsheet so that it automatically indicates whether a particular status "met expectations" or "achieved excellence" based on the date by which the task was completed.
I have one column for the "Meet Expectations" target date, one column for the "Achieve Excellence" target date, and one column for "Date Completed".
I am attempting to write a macro that will read the date completed, then compare it to the other two dates. If date complete is on or before Meet Expectations, but after Achieve Excellence, then the Results column should return "Met Expectations".
If date complete is on or before Achieve Excellence, then the Results column should return "Achieved Excellence".
I have written this so far:
Sub CalculateResults()
If (D20 <= C20) Then
F20 = "Achieved Excellence"
ElseIf (D20 > C20 And D20 <= B20) Then
F20 = "Met Expectations"
End If
End Sub
But it doesn't seem to be doing anything.
My file is attached.
Thanks,
Henry
Bookmarks