Making Change with Limited and Changing Funds - Dynamic Change Maker

OrbitalD

New Member
Joined
Jan 2, 2018
Messages
3
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


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
1001234.56
50034.56
20114.56
1014.56
504.56
140.56
0.2520.06
0.100.06
0.0510.01
0.0110

<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?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the Forum!

Perhaps:

B2: =FLOOR(D1/A2,1)
D2: =ROUND(D1-(MIN(B2:C2)*A2),2)

ABCD
1FormulaAvailable932.05
2100932.05
350032.05
420112.05
51012.05
6502.05
7120.05
80.2500.05
90.100.05
100.0510
110.0100

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>

where column C is left blank. Or, for example:

ABCD
1FormulaAvailable932.05
210095432.05
35085182.05
4209582.05
5108532.05
65657.05
71752.05
80.25850.8
90.1850.3
100.05650.05
110.01550

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>

 
Upvote 0
OHG that's super excellent! Thanks a bunch!

Is there anyway to put the 5 in C2 into B2 once its been entered as available? That way the user just uses all the numbers in column B for making change.
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,037
Members
449,205
Latest member
Eggy66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top