Basic math problem generator with Google Sheets

math problem generator with Google Sheets

Introduction

Practice assignments are important when learning a concept. Practicing problems helps students hone their skills and understanding. There was a time when worksheets were used to drill students on skills. This eventually was overdone because teachers used them for everything. Worksheets were termed drill and kill. 

Practice assignments apply skills repeatedly. It is similar to developing muscle memory. In this case, they are developing mental or skills memory. Skills memory is important for standardized assessments.

Students quickly forget skills and concepts if they are glanced over without enforcement. For example, if we cover fractions at the beginning of the year and never return to them, students forget. Skills should be revisited regularly in a variety of contexts. 

Repeated assignments help teachers evaluate the formation and retention of skills.

In this lesson, we will create a spreadsheet in Google Sheets to generate math practice assignments. The template is built around the basics. Those basics include addition, subtraction, multiplication, and division.

The generated assignments are transferred to a Google Sheet for distribution to students.

If you like this lesson please consider purchasing a PDF version. The purchase lets me know you like the lesson and it supports my efforts.

Purchase a printable PDF version of this lesson ($5.00)

Links to the finished products are available below. 

Preview and copy of the finished product(addition)
Preview and copy of the finished product(subtraction)
Preview and copy of the finished product(multiplication)
Preview and copy of the finished product(division)

Google Sheet Generator

Go to your Google Drive and create a folder to store the generator. Here is an example of what I do. I create an assignment folder. The assignment folder has a math folder. In that folder, I have my generator. This folder has folders for the eventual products created with the generator.

addition folder selected in math folder

Create a spreadsheet. Set the name of the Sheet to Basic Math Generator.

name of google document set to basic math generator

The generator uses a function called RANDBETWEEN. This function selects a random number from a provided range. The range has a lower number and an upper number. 

Type the title Addend 1 in cell A1. Type the title Addend 2 in cell C1. Type the titles High and Low in cells A2 and B2. Type the same titles in cells C2 and D2. Type the number 5 in cell A3 and the number 1 in cell B3. Type the same numbers in cells C3 and D3. We will begin with these numbers for our range.

google sheet with headings

Select cells A1 and B1.

cells A1 and B1 selected

Go to the button bar and click the merge button.

merge cells button

Repeat the process to merge cells C1 and D1.

cells C1 and D1 merged

Select the cells between A1 and D3.

cells A1 to D3 selected

Go to the button bar and click the alignment selector. Choose the center align option.

center align option

Change the font size to 12. Click the background selector tool. Select a light color.

light blue color selected from color palette

Select cells A3 to D3. Change the background color. Use a color that compliments the first. I have chosen a light blue and orange. This makes the generator useful and pleasant to use. 

color formatting applied to table

Click the letter E for column E.

column E selected

Click the border selector. Choose the left border option. Don’t move away from the selector yet.

left border option selected

Click the border thickness option. Choose the third option.

border thickness option selected

Type the titles Problem #, Addend 1, Addend 2, Problem and Sum in cells E1, F1, G1, H1, and I1. Set the font size to 12. Change the background of the cells. Use a light color. I choose a light green.

light green color for headings

Type the numbers 1 through 20 down column E. Begin in cell E2.

problems numbered 1 to 20 in column E

Go to cell F2 and type the function below. The function selects a random number between the numbers in cells A3 and B3. The lowest number must be first. This is why the first cell reference points to B3. The dollar symbols set the cell reference to an absolute cell reference. Press the Return key to set the function.

=RANDBETWEEN($B$3,$A$3)

RANDBETWEEN function in cell F2

The number generated in my example appears in cell F2. Go back to cell F2. Look for the blue square in the lower right corner. Double click this square.

random number in cell F2

This copies the function down the column. This option works because there is content in the left column. It will copy the function as long as it encounters content in the left column. The copy process ends at number 20. 

function copied to last numbered cell

Go to cell G2. Type the function below into the cell.

=RANDBETWEEN($D$3,$C$3)

function entered into cell G2

Double click the blue square to copy this function down the column.

cell with blue square in lower left corner

Go to cell H2 and type the formula below.

=F2&” + “&G2&” = “

formula entered into cell H2

I refer to formula and function. A function has one purpose. A formula is a combination of functions and operations.

F2 references the number in that cell. The ampersand is used to join, concatenate, two functions, or formula. We can't use the add symbol by itself. It would just add the contents of the cells together. The quotation marks set the add symbol as text. There is space between the add symbol to make the problem easier to read. The Add symbol and space is concatenated with the number in cell G2. The equal sign with spaces is concatenated with G2.

Double click the blue square to copy the formula down the column.

the formula copied to the other cells in the column

Change the high and low numbers to adjust the difficulty of the problems. Use single or double digits. There is no limit. Use numbers of any size.

ranges updated for addend 1 and addend 2

Go to cell I2 and enter the formula below. Double click the blue square.

=F2+G2

the formula added in cell I2

This is the basic addition problem generator. The rest of the generators are based on this one. 

Subtraction

Double click the Sheet 1 name. Change the name to Addition.

sheet renamed to addition

Click the actions triangle next to the sheet name.

action menu option for sheet

Select the Duplicate option.

duplicate option in action menu

Change the name of the duplicate sheet. Use Subtraction for the new name.

name updated on second sheet

Change the names of the columns for the number ranges. The column names are Minuend and Subtrahend.

heading names updated on subtraction sheet

Update the heading in the generator section. Replace Sum with Difference.

updated headings in problems section

Double click on H2. This places the cell in edit mode.

cell H2 in edit mode

Replace the addition symbol with the subtraction symbol. Press the Return key to update the formula.

operation symbol changed to minus

Click back onto cell H2. Drag the blue square down the column to update the rest of the cells. We can't double click the blue square this time.

updating cells in column H

Double click on cell I2. Change the addition to subtraction.

updating formula operation

Drag the blue square down the column to update the rest of the cells.

updating formula in cells below

Some of the answers are negative numbers.

subtraction problems with negative answers

To prevent negative numbers we need to change the range values. The range of values for the subtrahend must be smaller than those of the minuend.

larger minuend values and smaller subtrahend values

Multiplication

Make a duplicate of the subtraction sheet. Change the name of the duplicate to Multiplication.

multiplication sheet

Change the titles for the ranges. Use Multiplier and Multiplicand. You can also use Factor 1 and Factor 2.

updated headers in range section

Update the titles in the generator section. Replace Difference with Product.

updated headers in problem section

Double click cell H2. Replace the subtraction symbol with a letter x. Update the cells down the column.

update multiplication symbol

Double click cell I2. Change the subtraction operator with an asterisk. An asterisk is used to multiply values. Update the cells down the column.

update operator with asterisk for multiplication

That's all there is to the multiplication generator. 

Sometimes we need to transition from the letter x for multiplication to the Dot symbol. This is how to use the dot symbol for multiplication.

Double click H2. Replace the addition symbol and the quotation marks with CHAR(8901). Update the cells down the column.

=F2&" "&CHAR(8901)&" "&G2&" = "

formula with Unicode character function

CHAR is a function. It uses Unicode values to generate almost any symbol. Every symbol available to computers is represented with a Unicode value. The value for the Dot multiplication operator is 8901. The quotation marks between the ampersand are used to add space.

The link below has a nice page with a visual reference for several math Unicode values.

http://xahlee.info/comp/unicode_math_operators.html

The dot symbol is in the Operators section. The value appears when we hover the mouse arrow over a symbol.

code for the Dot operator

Division

Make a copy of the multiplication sheet. Change the name to Division. Update the titles for the ranges. The titles are Dividend and Divisor.

updated heading for ranges section

Update the titles on the Generator. Replace Product with Quotient.

updated headings in problems section

Double click on cell H2. Update the formula with the formula below.

=F2&" "&char(247)&" "&G2&" = "

This is the same format used to replace the x with the Dot symbol for multiplication. If you used the dot symbol all you need to do is replace the code with 247. Update the cells below.

updated formula with Unicode character function

Double click on cell I2. Replace the asterisk with the forward slash. Update the cells down the row.

updated operation for division

Most of the answers are in decimal format. Decimals are the remainder of the division problem. Remainders are often represented as fractions.

answers provided in decimal format

Fractions

Click on cell J1. Type the title Fraction. Update the cell background color.

fraction heading with updated formatting

Click in cell J2. Type =I2. This copies the contents of cell I2 into cell J2. Copy the formula to the cells down the column. Hint: double click the blue square.

copy value from adjacent cell

Select all the cells below the Fraction title.

cells selected in fraction column

Click Format and go to the Number option.

the number format option

Go to the bottom of the Number format options. Select Custom number format from the More formats option.

custom number format option in menu

Type # ??/?? in the custom format bar. This builds a number format where a whole number replaces the # symbol. Decimal values are converted to fractions and formatted with ??/??. Each question mark represents a number. Click the Apply button.

custom number formatting for fraction

The answers are represented as fractions.

answers represented as fractions

Remainders

Before students use fractions, they use remainders. Click on cell K1. Type Remainder for the title. Change the cell background color. Update the font size and center the title.

Remainder heading formatted to math the other headings

Type the formula below into cell K2. Copy the formula to the cells down the column.

=ROUNDDOWN(J2,0)&" R "&MOD(F2,G2)

rounding formula in cell K2

The ROUNDDOWN function rounds the decimal value. It gets the value in cell J2. The 0 is used for not decimal place value. We concatenate the letter R for the remainder within quotation marks. The MOD function is short for Modulus. Modulus determines the remainder in a division. To determine the remainder it needs to perform the division. It divides F2 by G2. 

answers with whole numbers and remainders

No Remainder

Most fractions have remainders. When students first learn division we avoid remainders. Division is usually taught along with multiplication. The relation of both operations is demonstrated with the back and forth of both operations.

Make a Duplicate of the Division sheet. Rename the sheet to Division No Remainders.

new sheet for problems without remainders

Double click cell F2. Add G2* after the equal sign. This multiplies the random number by the divisor. No remainders. Update the formulas down the column.

multiply the divisor by the dividend to eliminate remainders

There isn’t a need for the fraction or remainder column. Select both columns.

fraction and remainder column selected

Click the action triangle on one of the headers.

column action button

Select, Delete columns J-k.

delete the selected columns

The basic generators are complete. Let’s use them to create assignments.

Google Docs

Leave the generator sheet open. Go to Google Drive and create a new Google Document. Name the document Division with remainders 01.

google doc with document name applied

Go to the menu and select Insert. Go to Headers & footers. Select Header.

Header option

Type the title "Division with Remainders 01". Provide instructions below the title. Use the Title paragraph style for the title. Set the instructions font size to 14 points. Press the return key twice to add some space. Click on the body of the document to close the Header section.

heading in header section

Return to the math generator sheet. Select the regular Division sheet. Select the first ten problems. 

first ten problems selected

These are old problems. We can generate new problems on the sheet at any time. New problems are generated in several ways. They are generated when we open the spreadsheet when we refresh the page, and every minute through the settings. 

There is an option I prefer. Click on the first cell for the first problem. Click and drag the blue square down to the number of problems you want to regenerate.

updated cells to regenerate problems

This regenerates all the problems and selects the problems we want for the assignment.

updated problems

The answers are two columns over. To select the cells we need to use a modifier key. Windows and Chromebook users hold the Alt key. Mac users hold the Command key. Select the matching answers in the Remainder column.

Go to the menu. Click Edit and select Copy.

problems and remainder answers selected in separate columns

Go to the Google Document tab. Click Edit and select Paste without formatting. 

paste without formatting

Highlight the problems.

pasted problems highlighted

Change the font size to 18 points.

font size set to 18 points

Click the line spacing selector and choose Double.

double spacing option

Click the Numbered Bullet list option with parenthesis.

numbered bullet list option

Move the First line indent bar to the left. Stop when the indent is a 0.0. 

left indent option moved

Deselect the problems.

division problems and answers with remainders

This is your teacher's master. We need a copy for the students. Go to the menu and click File. Select the option to make a copy.

make a copy option

Remove the "Copy of" from the beginning of the name. Add "for students" at the end of the document name. Click the OK button.

updated document name

Delete the answers from the student version.

student version without answers

Repeat this process with any number of math assignments from the problem generator.

Previous
Previous

Fraction assignment generator for reducing fractions

Next
Next

Google Forms for vocabulary assignments