You can use an additional column beside the 5000 rows with a formula like:
=COUNTIF($D$1:$D$1000,A1)
Supposing that the 1000 rows to compare are in D1:D1000. That will be 0 if
the row is not in the group, more than 0 if it is. Then you can sort by this
column and you will have the desired group.
Hope this helps,
Miguel.
> hi members
>
[quoted text clipped - 3 lines]
> to separate that selected workers. is there any function which could
> help me this regard.