I'm not sure what to call this really but we are trying to find the best way to make change with limited numbers of bills / coins.
I've created a change maker using the MROUND and FLOOR as found in this example and it works well to make change but what happens if we run out of $100 bills or nickels?
https://appscout.pcmag.com/your-questions/274694-teach-excel-to-make-change
<colgroup><col span="3"></colgroup><tbody>
</tbody>
B2: =FLOOR(C1/A2,1)
C2: =MROUND(C1-(B2*A2),0.01)
<colgroup><col span="3"></colgroup><tbody>
</tbody>
If we only have ten $100 I can manually type 10 into the B2 cell and everything adjusts but we would like to change our mind and enter various numbers of bills / coins while keeping the function of the formulas running. A dynamic change maker with varying numbers of bills / coins.
Does that make sense? Is it possible?
I've created a change maker using the MROUND and FLOOR as found in this example and it works well to make change but what happens if we run out of $100 bills or nickels?
https://appscout.pcmag.com/your-questions/274694-teach-excel-to-make-change
Change Maker |
<colgroup><col span="3"></colgroup><tbody>
</tbody>
B2: =FLOOR(C1/A2,1)
C2: =MROUND(C1-(B2*A2),0.01)
A B | C 1234.56 | |
100 | 12 | 34.56 |
50 | 0 | 34.56 |
20 | 1 | 14.56 |
10 | 1 | 4.56 |
5 | 0 | 4.56 |
1 | 4 | 0.56 |
0.25 | 2 | 0.06 |
0.1 | 0 | 0.06 |
0.05 | 1 | 0.01 |
0.01 | 1 | 0 |
<colgroup><col span="3"></colgroup><tbody>
</tbody>
If we only have ten $100 I can manually type 10 into the B2 cell and everything adjusts but we would like to change our mind and enter various numbers of bills / coins while keeping the function of the formulas running. A dynamic change maker with varying numbers of bills / coins.
Does that make sense? Is it possible?