Hi..
Try this..
You had 2 'hidden' columns (B and C) on your Output sheet..
While i can see how you would get your second and third values .. example (Material and Weight).. it is not clear how you get the "ABSORBENT" value (first value)..
For this reason.. I have included only the 4 visible columns you showed in your output sheet..
You can either insert the other 2 columns and use a formula or vba to get the values..
You could also include those values in the building of the 'y' array.. I didn't for the above reason..
Click the button.. result shown on sheet1.
Bookmarks