Suppose you have this:
- N -
2534
9241
5234
3452
9876
Add a column to have this:
- N - - A -
2534 2345
9241 1249
5234 2345
3452 2345
9876 6789
You can see that your three number 2534, 5234 and 3452 now have the same
value 2345 in the second colonne. All you have to do is to make a Group By
on this second column and add the condition Having Count (*) > 1 to find
them:
Select N from Table where A in (Select A from Table Group By A Having Count
(*) > 1)
I leave you the transformation 2534 --> 2345 as an exercice. The most
easiest way would be to convert the number into a character string and then
sort this stream of caracters in ascending order. You can also replace the
second column with a VBA function.
S. L.