A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Do you really want to set the output range starting in E5 because that would overwrite the original data? Here I set the output range to start in G5, you can change it to E5 if that's what you require.
Sub FindUniques()
'Updateby20140313
Dim rng As Range, j As Long, i As Long, xValue
Dim InputRng As Range, OutRng As Range
Dim dic
Set InputRng = Range("E5:F1000")
Set OutRng = Range("G5")
Set dic = CreateObject("Scripting.Dictionary")
For j = 1 To InputRng.Columns.count
For i = 1 To InputRng.Rows.count
xValue = InputRng.Cells(i, j).Value
If xValue <> "" And Not dic.Exists(xValue) Then
OutRng.Value = xValue
dic(xValue) = ""
Set OutRng = OutRng.Offset(1, 0)
End If
Next
Next
End Sub