budget spreadsheet with min and max and roundup functions

twinchcombe

New Member
Joined
Jun 24, 2019
Messages
2
Hi There,
I'm working on my budget spreadsheet, i have a column of numbers generated by our budget formula. I want to add a formula in the next column that will adjust those number to a maximum of $35,000 a minimum of $10,000 and round up everything else to the nearest $100. It is possible to do this in 1 cell?

Thanks for your help!
twinchcombe
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
try

=ROUND(IF(A1>=35000,35000,IF(A1>10000,A1,10000)),-2)
 
Upvote 0
Alan,
I think you need to use ROUNDUP, not ROUND, as they said:
round up everything else to the nearest $100.
Here is another solution without any IF statements:
Code:
=MIN(MAX(ROUNDUP(A1,-2),10000),35000)

And Welcome to the Board, twinchcombe!
:)
 
Last edited:
Upvote 0
It worked! Thanks so much.
If you really want it to "round up" as opposed to just "rounding", you will need to amend the solution slightly (see my previous post).
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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