BalloutMoe
Board Regular
- Joined
- Jun 4, 2021
- Messages
- 137
- Office Version
- 365
- Platform
- Windows
Hello All, looking for some guidance on this problem I am stuck on. I am sure it is doable just can't figure it out at the moment and my vba skills are not the best. Below is a table and I am looking to subtract until amount is zero with a condition to not go under $25.50 in Column B.
So starting with 800 in Range("D2") I would like to subtract full amount from column A as you can see until it reached Range("A9") if the remaining balance is smaller then cell value in range A I would like to keep 25.50 and continue on to the next row until the 800 balance is zero.
Any help would be appreciated
So starting with 800 in Range("D2") I would like to subtract full amount from column A as you can see until it reached Range("A9") if the remaining balance is smaller then cell value in range A I would like to keep 25.50 and continue on to the next row until the 800 balance is zero.
Any help would be appreciated
ColumnA | ColumnB | ColumnC | |
$177.57 | $0.00 | $622.43 | $800 |
$145.00 | $0.00 | $477.43 | |
$99.63 | $0.00 | $377.80 | |
$98.50 | $0.00 | $279.30 | |
$90.32 | $0.00 | $188.98 | |
$88.79 | $0.00 | $100.19 | |
$64.97 | $0.00 | $35.22 | |
$48.74 | $25.50 | $11.98 | |
$47.12 | $35.14 | $0.00 | |
$46.26 | 46.26 | ||
$39.00 | 39 | ||
$39.00 | 39 | ||
$39.00 | 39 | ||
$39.00 | 39 | ||
$39.00 | 39 | ||
$24.00 | 24 | ||
$24.00 | 24 | ||
$24.00 | 24 | ||
$20.00 | 20 | ||
$18.39 | 18.39 | ||
$7.00 | 7 |