Rounding to steps: FLOOR, CEILING, EVEN, ODD: practice exercises
FLOOR, CEILING, EVEN, ODD. 5 exercises on real-looking data, each marked the moment you press Check. The first exercise is below to try now; the full lesson is part of Pro.
Calls are billed only in completed blocks of the number of minutes in H1. In C2, round each client's minutes down to a whole number of blocks.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Client | Minutes on calls | Minutes billed | Block (minutes) | 15 | |||
| 2 | Kestrel Cleaning | 201 | ||||||
| 3 | Summit Software | 45 | ||||||
| 4 | Redbrook Couriers | 165 | ||||||
| 5 | Brightway Print | 75 | ||||||
| 6 | Linden Office | 39 | ||||||
| 7 | Northgate Supplies | 75 | ||||||
| 8 | Ashby Stationers | 102 | ||||||
| 9 | Harbour Catering | 180 | ||||||
| 10 | Willow Training | 59 | ||||||
| 11 | Oakfield IT | 20 |
How it works
FLOOR(number, step) rounds down to a multiple of the step, and CEILING(number, step) rounds up. Billing in completed 15-minute blocks is FLOOR; charging for every started hour is CEILING.
EVEN(number) rounds up to the next even number and ODD(number) to the next odd one. A number that's already even (or odd) stays as it is.
=FLOOR(B2,30) =CEILING(B3,30) =EVEN(B4) =ODD(B4)
Rounding to a step
ROUND works in decimal places. Sometimes you need to round to a step instead: whole boxes of 12, blocks of 15 minutes, pairs.
FLOOR(number, step)rounds down to a multiple of the step.CEILING(number, step)rounds up to a multiple of the step.- A number that's already a multiple stays as it is.
Worked example
| A | B | |
|---|---|---|
| 1 | Job | Minutes |
| 2 | Repair | 70 |
| 3 | Survey | 45 |
| 4 | Install | 95 |
=FLOOR(B2,30)in C2. 70 minutes in completed half-hours: FLOOR rounds down to 60.=CEILING(B2,30)in C2. Charging for every half-hour started, CEILING rounds up to 90 instead.=CEILING(B2,30)in C2. Copied down: 45 rounds up to 60, and 95 up to 120.
EVEN and ODD
EVEN(7) is 8 and EVEN(8) stays 8: it always rounds up to an even number. ODD(8) is 9 and ODD(9) stays 9.
Use them for pairs (desks, rooms for two) or for an odd number of people so that votes can't tie.
What you'll practise
- Calls are billed only in completed blocks of the number of minutes in H1. In C2, round each client's minutes down to a whole number of blocks.
- Parking is charged for every hour started, at the price in H1. In C2, use CEILING to round the minutes up to whole hours (60 minutes), then work out the charge.
- Desks come in pairs that face each other. In C2, use EVEN to round each team's size up to an even number of desks.
- Each committee needs an odd number of seats, so a vote can't tie. In C2, use ODD to round the number of volunteers up to an odd number of seats.
- Long service awards are given at every multiple of the number of years in H1. In C2, show the most recent award level each person has reached (0 if they haven't reached the first).