Dear Rumu, the solution depends a bit on how many pairs of RunNBRStart/RunNBRStart you have for a SupplierCode/Accnt pair. If that is not in a many thousands you can have the following solution for Hash-Stage-Solution. You keep supplier/accnt as key you make up an array for RunNBRStart/RunNBRStart/L...