Returns a number rounded to the nearest multiple of another number.
MROUND(number, mult)
Returns number rounded to the nearest multiple of mult, that is to mult times an integer. An alternative implementation would be mult * ROUND(number/mult).
MROUND(15.5, 3)
returns 15, as 15.5 is closer to 15 ( = 3*5) than to 18 ( = 3*6).
MROUND(1.4, 0.5)
returns 1.5 ( = 0.5*3).
Inventory Management
Imagine you are a store manager who needs to order new inventory. Your supplier only sells items in cases, and each case contains a specific number of items. You have a list of your current stock and need to determine how many items to order to get as close as possible to your desired stock level, but in multiples of the case size.
Goal: Round the number of items needed to the nearest multiple of the case size.
Scenario:
Here is a table illustrating this example:
Item | Current Stock | Desired Stock | Items to Order (Calculated) | Case Size | Items to Order (Rounded) | ||
|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | ||
1 | T-Shirts | 150 | 220 | 70 | 12 | 72 | |
2 | Jeans | 85 | 130 | 45 | 6 | 48 | |
3 | Socks (pairs) | 215 | 300 | 85 | 24 | 96 | |
4 | Hats | 45 | 60 | 15 | 5 | 15 | |
5 | Sweatshirts | 60 | 100 | 40 | 8 | 40 |
Explanation of the MROUND Function in this Example:
This example demonstrates how the MROUND function ensures that the final order quantity is always a valid number of full cases, preventing you from ordering a partial case from your supplier.
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof