Filter & Track Rows

How to filter and track rows for merging?