G
Gary Keramidas
what would be the best way to compare 2 columns of numbers?
the master list is downloaded every day. numbers may be added or deleted. i
would need to find just the ones that were added or deleted in the master list.
i wrote a routine that sorts and compares side by side numbers and if it finds
one, it changes the offset to the next row and continues on to the next row.
this seems to work fine for numbers that were added.
i just wondered if there was a better way to filter them out.
For Each cell In ws2.Range("A1:A" & lastrow3)
cell.Value = cell.Value * 1 'in case any are stored as text
cell.Offset(0, 1).Value = cell.Offset(0, 1).Value * 1 'in case any are
stored as text
If cell.Value <> cell.Offset(0 - Cntr, 1).Value Then
Debug.Print cell.Address
Cntr = Cntr + 1
.Range("C" & Cntr) = cell.Value
End If
Next
the master list is downloaded every day. numbers may be added or deleted. i
would need to find just the ones that were added or deleted in the master list.
i wrote a routine that sorts and compares side by side numbers and if it finds
one, it changes the offset to the next row and continues on to the next row.
this seems to work fine for numbers that were added.
i just wondered if there was a better way to filter them out.
For Each cell In ws2.Range("A1:A" & lastrow3)
cell.Value = cell.Value * 1 'in case any are stored as text
cell.Offset(0, 1).Value = cell.Offset(0, 1).Value * 1 'in case any are
stored as text
If cell.Value <> cell.Offset(0 - Cntr, 1).Value Then
Debug.Print cell.Address
Cntr = Cntr + 1
.Range("C" & Cntr) = cell.Value
End If
Next