Hello, I'm looking for a way (formula or macro) to assign ID or batch number under condition e.g., if the same records (AAA) in the same column is repeated 20 times or more then the first 10 repeated records (AAA) will get ID: A1 and the others over 10 and more will get ID: A2 but if the same record is not repeated more than 20 times in one same column then all the records will get ID: A1. Thank you for any help