I have an excel sheet that i use to calculate a raw material cost per kg for my customer.
effectively i want the excel sheet to calculate how many jerry cans are needed for the total weight of the order there are 3 sizes of jerry can that i use
- size 1 is a 30kg jerry which can hold weight between 10kg and 30kg
- size 2 jerry is a 5kg jerry which can hold weight between 2kg and 5kg
- size 3 jerry is a 1.26kg jerry which can hold weight between 0 and 1.26kg
the size 1 jerry is the preferred jerry for orders more than or equal to 10kg as it is the most cost effective option.
i am have tried a few formulas that chat GPT has given to me but none of these seem to completely solve the problem.
an example of what i am looking to achieve is if 36kg is ordered the formula will allocate the first 30kg to size 1 jerry, 5kg will be allocated to a size 2 jerry and the remaining 1kg will be allocated to a size 3 jerry.
is this possible?