Hi All, I know this is possible because I'm sure I've learned how to do it in the past but I'm drawing a blank, so coming to you for help!
In a spreadsheet I'm building we need to provide a number of Earplugs (lets say 158). We can buy Earplugs in packs of 50 and packs of 25. Essentially i would like to input the Total number of earplugs needed in cell A3, and then cell B3 would calculate how many packs of 50 I would need, and cell C3 would calculate how many packs of 25 I would need.
In the example shown it would be 3 packs of 50, one pack of 25. I would also like it if the formula prioritized the packs of 50 first (buying in bulk is cheaper!).
Any help would be greatly appreciated (formula rather than VBA if possible)
Thanks
In a spreadsheet I'm building we need to provide a number of Earplugs (lets say 158). We can buy Earplugs in packs of 50 and packs of 25. Essentially i would like to input the Total number of earplugs needed in cell A3, and then cell B3 would calculate how many packs of 50 I would need, and cell C3 would calculate how many packs of 25 I would need.
In the example shown it would be 3 packs of 50, one pack of 25. I would also like it if the formula prioritized the packs of 50 first (buying in bulk is cheaper!).
Any help would be greatly appreciated (formula rather than VBA if possible)
Thanks