Forum Discussion
Excel
Jul 23, 2022Iron Contributor
Query related to excel
Hello Everyone, How can I achieve the following calculation in a formula? If the house value is 750,000 or less the maximum mortgage amount allowed is 80% of that value. If the house value i...
- Jul 23, 2022
Excel Let's say the value is in A1, try this:
=MIN(750000,A1)*80%+MAX(0,A1-750000)*50%
Excel
Iron Contributor
Sorry sir,
Actually i solved in with Excel functions, but i do not know how to do in VBA code ?
Actually i solved in with Excel functions, but i do not know how to do in VBA code ?
HansVogelaar
Jul 23, 2022MVP
Have you tried recording a macro? That might provide a start - you'll have to edit the recorded macro to make it more generic.
- ExcelJul 23, 2022Iron ContributorThank you so much sir.
When i do macro, it give me the VBA code.
Thank you so much sir.