I have a table that has varying numbers of rows with unique data, i.e., Col A = xxxx and Col B = B or S, Col C = D or U. I can have XXXX B,D or XXXX B,U or XXXX S, D or XXXX S, U. These are group by XXXX. Finaly the question. How do I assign a unique number for XXXX B,D Etc. If I have 10 rows of XXXX B, D I want each row to have 1 assigned. If I have 6 rows of YYYY S,D I want each row to have a 2 assigned and so on to EOF?