Using a Cell reference in CEILING.MATH (or MROUND) for the Significance

Bravo2003

Active Member
Joined
Apr 1, 2010
Messages
278
Office Version
  1. 365
Platform
  1. Windows
I'm using this formula in my spreadsheet

=IF(ISBLANK(DI4),CEILING.MATH(DH4,4),"")

But can I get the 'significance' reference (example here is multiples of '4') to reference a cell instead that I can use to change the value to round by in ?
e.g quickly change from Rounding by 4 to rounding by 5 or 10, etc...

Is this possible?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I don't have CEILING.MATH function but that certainly works for CEILING, just use a cell reference, e.g. A1 like this:

=IF(ISBLANK(DI4),CEILING.MATH(DH4,A1),"")
 
Upvote 0
Ceiling.Math is available in my xl2016 (O365) install.
It adds a 3rd optional argument called MODE, that lets you choose for negative numbers to be either toward or away from 0

Anyway, it also will certainly take a cell reference for the 2nd argument.
I would guess the value you have in the cell you tried to use is NOT numeric.
 
Last edited:
Upvote 0
I don't have CEILING.MATH function but that certainly works for CEILING, just use a cell reference, e.g. A1 like this:

=IF(ISBLANK(DI4),CEILING.MATH(DH4,A1),"")

OMG, I swear this Excel is out to drive me mad... I tried that earlier and it kept giving me an error box and not letting me do it!
Tried it now and simple..

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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