Google Sheets Modulo Function (How to Use it in 2024)

In this article, we will explore the Google Sheets modulo function. We also cover how to set up the Google Sheets modulo function. Simply follow the process below.

What is the Google Sheets Modulo Function?

The modulo function in Google Sheets is used to find the remainder of a division between two numbers. In Google Sheets, the modulo function is represented as:

MOD(number, divisor)

Here's how it works:

number: This is the number you want to divide.

divisor: This is the number by which you want to divide the first number.

The MOD function returns the remainder after dividing the first number by the second number. For example, MOD(10, 3) will return 1, because 10 divided by 3 is 3 with a remainder of 1.

How to Set Up the Google Sheets Modulo Function

The modulo function in Google Sheets is useful for categorizing numbers, determining even or odd values, and simplifying complex calculations in datasets. Simply follow the steps below to apply the modulo function in your dataset.

1. Determine Even or Odd Numbers in a Dataset

We will use the modulo function to determine if each number in a given dataset is even or odd. In our example, we have a list of numbers: 5, 12, 19, 26, 33, 40, 47, 54, 61, and 78. By applying the modulo function with the divisor 2, we can find out which numbers are even (remainder = 0) and which are odd (remainder ≠ 0).

2. Select the Cell Next to Your First Data Point

Click on the cell next to the first number in your dataset. This cell will display the result of the modulo function for the first number.

3. Enter the Modulo Formula to Check for Even or Odd Numbers

Type =MOD(, followed by the reference to the first number in your dataset and the number 2, separated by a comma. For the first number 5, the formula will be =MOD(A2, 2).

4. Press Enter to Calculate

After entering the formula, press Enter. The cell will show 1, indicating that 5 is an odd number (since 5 divided by 2 leaves a remainder of 1).

5. Drag the Formula Down to Other Cells

Click on the cell containing your formula. Drag the fill handle (a small square at the bottom-right corner of the cell) downwards to apply the formula to the remaining numbers in your dataset.

6. Analyze the Modulo Results for Even and Odd Numbers

Review the results in the column where you applied the modulo function. Cells showing 0 indicate even numbers, and cells with 1 indicate odd numbers.

7. Experiment with Different Divisors for Various Insights

Experiment with different divisors in the modulo function to see how the results change. This helps in understanding the versatility of the modulo function in various contexts.