I am working on payment/cost estimator and am looking for some ideas and formula or macro help. Basically what I am trying to do is set up a calculator where you would input the payment you could afford and it will tell you how much you can spend on the equipment.
The problems I am running into are that when you factor in the interest rate and commission, the payments are round numbers so I need the formula to find the closest value.
Example- $250 payment. The payments in the table w/ the interest rates are $158, $248 and $350. I would need it to pick the corresponding equipment cost for the $248 payment.

Make sense?
If a macro would be easier I am fine with that, just have limited experience setting one up. TIA!