I have a code with several different vlookups, all of them are straight forward except one. the vlookup below is ok accept in the worksheet SAP ECHL...there are sometimes two rows with the same loan number. One is "Active" and the other is "Deactivated". How can I update the code to ignore any "Deactivated" ones? the status is found in column H of the worksheet "SAP ECHL and CT02"
Range("W2").Select Application.CutCopyMode = False Range("W2:W" & LastRow).FormulaR1C1 = _ "=VLOOKUP(RC[-21],'SAP ECHL and CT02'!C[-19]:C[-11],9,0)" Range("W2:W" & LastRow).Value = Range("W2:W" & LastRow).Value