Help with Rounding up a formula to a whole number

wberg82

New Member
Joined
Feb 19, 2016
Messages
38
=IF(MOD((J29*1.1),12)>=9,CEILING((J29*1.1),12),(J29*1.1))

This current formula I am using is not working the way I want it to. Here is what I am trying to do:

I want the user to enter a number in cell J29. Cell B29 then takes that number and multiplies it by 10%. The result of that number rounds up to the next interval of 12. However, here is where it gets complicated (at least in my eyes).

It only rounds up to the next interval of 12 after the result equals or greater than a certain result of the multiplication, otherwise the output will be that (whole) number. For example:

If user enters "3" in cell J29, the result of the above equation is 3.3. This number needs to round up to 4. However, if the result is greater than or equal to 9, I want the output to round up to 12.

If result is >=9 output is 12
If result is >=20 output is 24
If result is >=30 output is 36
If result is >=42 output is 48

Any help on this would be greatly appreciated.

Thanks!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
test this:
Code:
=IF(MOD((J29*1.1),12)>=9,MROUND((J29*1.1),12),ROUNDUP(J29*1.1,0))
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,794
Members
449,048
Latest member
greyangel23

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