Setting min/max fields, auto rounding of numbers and macro for uplifting figures

harryfishy

New Member
Joined
Feb 19, 2018
Messages
2
Sorry folks, not the greatest thread title I know but I thought best to put all three questions in one post.

1) I currently have a field (R17) that is automatically 10% of R15. However I want this figure to go no higher than 200. (Eg - R15 is 10,000, R17 is 200 rather than 100).

2) I also want this field to go up in multiples five (but obviously never above 200).

3) My various calculations are all added up to give a "total" in a field (R18). I would like to create three macro's (or buttons as I call them!) One button whereby pushing it uplifts this figure by 5%, one that does it by 10% and one that does it by 15%. (Eg - R18 is £5,000, pushing 5% button changes R18 to £5,250).

Thank you!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi all,

I have managed through some trial and error to solve questions 1 & 2 myself but I’m still stuck on 3 - if anyone can assist that would be great!
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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