问题
I have several ingredients (variables), let's call them A, B, C, D, E.
Now my recipes require:
recipe1 = A(1 piece) + B(1 piece)
recipe2 = C(2 pieces) + D(3 pieces) + E(1 piece)
Now suppose if the number of ingredients I have in stock is A=40, B=66, C=95, D=136, E= 52.
I want the Excel to tell me, that I can create, 40 recipe1 and 1 recipe2.
How do I do that? I am new at this. The above problem is just a sample. but this is essentially the sort of problem, I face regularly, I always have to look for the sets, which is very time-consuming.
来源:https://stackoverflow.com/questions/60699173/how-to-write-excel-functions-to-club-stocks