たとえばこんな感じでどうでしょうか。
VBA
1Sub sample()
2
3 Dim dic 'As Scripting.Dictionary
4 Set dic = CreateObject("Scripting.Dictionary")
5
6 Dim arr
7 arr = Worksheets("職員データ").UsedRange.Value
8
9 Dim i
10 For i = 2 To UBound(arr, 1)
11 dic(arr(i, 1) & vbTab & arr(i, 4)) = i
12 Next
13
14 Dim ws As Worksheet
15 Set ws = Worksheets("比較")
16
17 Dim k, v, j
18 For i = 2 To ws.UsedRange.Rows.Count
19 k = ws.Cells(i, 1).Value & vbTab & ws.Cells(i, 4).Value
20 If dic.Exists(k) Then
21 ws.Cells(i, 5).Value = arr(dic(k), 5)
22 For j = 1 To 4
23 If ws.Cells(i, j).Value <> arr(dic(k), j) Then ws.Cells(i, j).Interior.Color = vbYellow
24 Next
25 End If
26 Next
27End Sub
28