I will enter the data into an MS Access database, do the calculation using MS Access query and export the query to MS Excel. I will provide both the Access database and the exported Excel file. If you want another new costing algorithm, it can be done is less than a days time.