What you will learn
- Find a remainder with MOD
- Tell if a number is even or odd
How it works
=MOD(A2,2) is 0 for even numbers and 1 for odd numbers.
=IF(MOD(A2,2)=0,"Even","Odd") labels them.
Formulas at a glance
=MOD(A2,2) | remainder after ÷ 2 |
=IF(MOD(A2,2)=0,"Even","Odd") | The pattern to follow |
Example
Write the formula to find the remainder when the first number is divided by 2.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Number | Remainder ÷ 2 | Even or odd | Left over in teams of 3 |
| 2 | 14 | |||
| 3 | 7 | |||
| 4 | 22 | |||
| 5 | 9 | |||
| 6 | 30 |
Click B2 and type =MOD(A2,2), then press Enter.
The answer is 0.
When to use it
- Even or odd labels
- People left over after making teams
- Every 3rd or every 5th row
Common mistakes
- Mixing up the orderThe number comes first, then what you divide by.
- Expecting the answer of the divisionMOD gives only what is left over.
- Testing =1 for evenEven numbers give 0.
Practice it on a real sheet
Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.