Thanks again for helping but Hemesh have you noticed one thing that the values in the column J6 to M6 should be present in Column D7 to G7 because the payment of these numbers were made on different date.