You want to know the optimum quantity of compressed ore to reprocess into X minerals, with lowest possible isk cost including hauling.
In a spreadsheet ?
Without a solver ?
That will require very complex math with many variables, there are 16 types of Ore, 14 if you ignore Mercoxit and Veldspar, which each has 1-4 types of minerals, so 16 * 4 = 64 (max) variables from the Ore alone, then you have the variables connected to your reprocessing yield which adds another 5 or so.
It would be fairly simple if you were only looking for 1 type of Mineral, but since you probably looking for it to be for all 7-8 types of minerals… well even with my high understanding of math, I would still not attempt this.
It may be usable, but it does not try to minimize the excess minerals you will get, if you put in 25 million for all but Morphite, you will end up with more than 1 billion excess Tritanium, not to mention the rest that are in excess.
OP wanted to know the amount that would generate the least amount of excess minerals, or am I wrong @Gonzo_Zirud?
It is possible but you will probably have to use a separate “sheet” for that (I’m not meaning a new document/file), you can use the “Problem Solver”, it’s not activated by default so you’ll have to activate it.
How to activate Problem Solver in MS Excel
To activate Problem Solver go to Options > Add ins > on right-hand side in the bottom you will see Administrate: Excel add-ins, click the “execute” (or what ever it says) > in the dialog box that comes up tick in “Add-in Problem Solver” and press “Ok”
WARNING - The Problem Solver may take a long time to find a solution.
you will need:
A cell with your Reprocessing Yield %.
A column with list of quantity of compressed ore you will need to achieve your requirements.
A column with list of compressed ore types.
A column with list of volume per unit.
A cell calculating the total volume. (will be needed for the Problem Solver)
A row with list of mineral types.
A matrix with all the yields
A row with list of required minerals.
A row with list of excess minerals
A cell that show total quantity of excess mineral (will be needed for Problem Solver)