Hello,
I am working on a project aiming to calculate the remaining product cost for a list of contracts.
I have two columns with data which both have multiple values separated by delimiters and need to add the values in column 1 (quantity shipped) if they match with a specific value from column 2 (dosage).
Example Data:
Product Quantity This Shipment | (Product/Material) Dosage |
|---|
800, 521, 698, 685, 1,648, 413, 806, 201 | 100mg, 500mg, 100mg, 500mg, 100mg, 500mg, 100mg, 500mg |
Anywhere 100mg is present in column 2, I need to collect and sum the corresponding value from column 1 and then I will need to perform the same action to obtain the quantity of 500mg dosage shipped. Ideally, the output would look like this:
Product Quantity This Shipment | (Product/Material) Dosage | 100mg | 500mg |
|---|
800, 521, 698, 685, 1,648, 413, 806, 201 | 100mg, 500mg, 100mg, 500mg, 100mg, 500mg, 100mg, 500mg | 3952 | 1820 |
TIA!!