Here is code i have previously used.
However, now my data is on a seperate spreadsheet. Column A i want to use is on sheet "sales rep" and col k i want to use is on sheet "Data Sheet". I cannot seem to grasp how to make this compare col a from one sheet to col k on another. Any suggestions? Thanks.
Code:
For Each ce In Range("a2:a" & Cells(Rows.Count, 1).End(xlUp).Row)
ce.Offset(0, 1) = WorksheetFunction.CountIf(Range("k2:k"), ce.Value)
Next ce