|
Sub 电商业绩核对表()
Dim i As Integer
Application.ScreenUpdating=False
For i = 1 To 22000
If Sheets("计算核对表").Range("A" & i) <> "" Then
Sheets("计算核对表").Range("O" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("咨询顾问业绩表").Range("D:I"), 2, 0), "")
Sheets("计算核对表").Range("P" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("接待明细表").Range("C:Q"), 15, 0), "")
Sheets("计算核对表").Range("Q" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("接待明细表").Range("C:J"), 8, 0), "")
Sheets("计算核对表").Range("R" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("接待明细表").Range("C:K"), 9, 0), "")
Sheets("计算核对表").Range("S" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("E" & i), Sheets("电商咨询业绩").Range("F:O"), 10, 0), "")
Sheets("计算核对表").Range("T" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("F" & i), Sheets("电商咨询业绩").Range("F:O"), 10, 0), "")
Sheets("计算核对表").Range("U" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("接待明细表").Range("C:Y"), 23, 0), "")
Sheets("计算核对表").Range("V" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("E" & i), Sheets("电商咨询业绩").Range("F:N"), 9, 0), "")
Sheets("计算核对表").Range("W" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("F" & i), Sheets("电商咨询业绩").Range("F:N"), 9, 0), "")
Sheets("计算核对表").Range("X" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("咨询顾问业绩表").Range("D:I"), 6, 0), "")
Sheets("计算核对表").Range("Y" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("E" & i), Sheets("电商咨询业绩").Range("F:M"), 8, 0), "")
Sheets("计算核对表").Range("Z" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("F" & i), Sheets("电商咨询业绩").Range("F:M"), 8, 0), "")
Sheets("计算核对表").Range("AA" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("E" & i), Sheets("电商咨询业绩").Range("F:P"), 11, 0), "")
Sheets("计算核对表").Range("AB" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("F" & i), Sheets("电商咨询业绩").Range("F:P"), 11, 0), "")
Sheets("计算核对表").Range("AC" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("接待明细表").Range("C:H"), 6, 0), "")
Sheets("计算核对表").Range("AD" & i) = Application.IfError(Application.VLookup(Sheets("计算核对表").Range("I" & i), Sheets("接待明细表").Range("C:N"), 12, 0), "")
End If
Next i
MsgBox Format(Timer - tms, "技术完毕!用时0.0秒")
Application.ScreenUpdating=True
End Sub |
|