Excel Supreme

Excel track · Exercise 31 of 86 Paid

ROUNDUP and ROUNDDOWN: one direction only

Choose the direction on purpose, so the count follows the job.

Intermediate

Three items and a crate size

Read-only data · screen 1 of 2 · answer in B6

In B6, work out the crates needed: twelve units to a crate, and a part crate still ships.

AB
1ItemUnits
2Bolts250
3Nuts130
4Washers96
5Total units476
6Crates needed

Download this grid (.xlsx) Two tabs: the grid you see, and the answer.

B6

What it does

ROUNDUP and ROUNDDOWN take the same two arguments as ROUND. The difference is the direction. ROUNDUP moves away from zero and ROUNDDOWN moves toward it, so at 0 decimals the answer is the next whole crate up or the last whole crate down.

Here 476 units at twelve to a crate is 39.67. ROUNDUP(B5/12,0) answers 40, because the part crate still ships. ROUNDDOWN answers 39 and leaves 8 units behind.

ROUND would answer 40 on this sheet and 39 as soon as the total fell below 474, so the same formula changes direction when the data moves. Pick the function from what the number is for: crates to order, or crates that are full.

Syntax

=ROUNDUP(number, digits) and =ROUNDDOWN(number, digits)

Worked example

On Three items and a crate size, =ROUNDUP(B5/12,0) returns 40.

=ROUNDUP(B5/12,0)

Common errors

Error codes for ROUNDUP and ROUNDDOWN
ErrorWhat it means and how to fix it
#VALUE!The digits argument is text, or a range was passed where a single number belongs.
#NAME?The name is typed ROUND-UP or ROUND_UP, and the function is one word.
Wrong directionROUNDDOWN returns 39 and leaves 8 units unshipped, where the order needs 40 crates.

At work

A parts order packed in crates of twelve, where a part crate still costs a full one.