Round up or down (based on input)

niravrph

New Member
Joined
Apr 13, 2011
Messages
41
Hi,

I would like to know how to set up Excel to limit an user from inputting something that is not divisible by 50. For example, I am setting up an order form for colleagues to order some educational fact sheets. These sheets are printed in packs of 50 - so they would have to order quantities in numbers divisible by 50. I would like to inform them to order in multiples of 50 only * AND * automatically round anything they input EITHER up or down by 50. That is, if they enter 418 it rounds down to 400, if they enter 469 it rounds up to 500.

Can you help me?

Thank you!
Nirav
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Thank you, Jon. I truly appreciate the speedy response. Sorry to be slow on the uptake but will this formula automatically round based on the user's input? Should I be entering this formula using the Validation function? I have several rows with 5 cells per row that users can input quantities into. I want to be able to round all of these rows.

Thank you,
Nirav
 
Upvote 0
It won't do it on the cell the user inputs into.

say the user inputs into A1
Put that formula in B1
B1 will show the rounded result of the user's input in A1.

And you can copy B1, then paste it onto B2 through B(whatever)
 
Upvote 0
If you want to limit them to multiples of 50 rather than rounding, you may wish to use data validation with a custom formula of =MOD(A2,50)=0 where A2 is the input cell.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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