Thank you for your help.
I apologize for not having valid code, but I cannot seem to get my head around this problem's solution.
I am trying to determine a way to check each number in column B verses all of column C.
I believe I must loop within a loop to scan the 500 rows of Column C for each cell in Column B.
For each value in column B, if a unique value is found I need to copy it to a new column.
The alternate version of this, I believe, is if a duplicate value is found, to delete both duplicate values. (preferred)
I apologize for not having valid code, but I cannot seem to get my head around this problem's solution.
I am trying to determine a way to check each number in column B verses all of column C.
I believe I must loop within a loop to scan the 500 rows of Column C for each cell in Column B.
For each value in column B, if a unique value is found I need to copy it to a new column.
The alternate version of this, I believe, is if a duplicate value is found, to delete both duplicate values. (preferred)
Code:
Dim Rows as Range
Second_Row as Range
For Each Row In Range("B2:B502")
For Each Second_Row in Range ("C2:C502")
If Row.Value=Second_Row.Value then
Row.Cell.ClearContents
Else
Continue
Second_Row = Second_Row + 1
Next Second_Row
Row=Row+1
Next Row
Last edited: