Cell mathematics!

Introduction to Google Sheets

James Chapman

Curriculum Manager, DataCamp

Formulas

  • Calculate results from other values
  • Support common arithmetic operations, including: +, -, *, and /
  • Allow interested stakeholders to see how values were calculated
Introduction to Google Sheets

Writing formulas

  • = tells the spreadsheet that we are writing a formula in the cell

A spreadsheet where an equals sign has been entered into a cell to begin a formula.

Introduction to Google Sheets

Arithmetic examples

Addition
  • Formula: = 5 + 15

  • Displayed value: 20

Subtraction
  • Formula: = 12.5 - 7

  • Displayed value: 5.5

Multiplication
  • Formula: = 2 * 3.2

  • Displayed value: 6.4

Division
  • Formula: = 8 / 3

  • Displayed value: 2.666666667

  • Dividing by zero → #DIV/0!

Introduction to Google Sheets

More advanced arithmetic

  • Exponentiation: ^caret

 

Formula: = 2 ^ 3

Displayed value: 8

  • Specify order of operations: ()

 

Formula: = (2 + 3) * 6

Displayed value: 30

Introduction to Google Sheets

Order of operations

  • Complex formula: = (2 + 4) / 3 - 2
    1. Parentheses ()
    2. Exponents ^
    3. Multiplication * and division /
    4. Addition + and subtraction -
Introduction to Google Sheets

Editing formulas

  A spreadsheet containing bank account information.

Introduction to Google Sheets

Editing formulas

  Selecting a cell to edit its formula.

Introduction to Google Sheets

Editing formulas

  The formula of cell D2 following edits; we have changed the denominator of the fraction from 300 to 150.

Introduction to Google Sheets

Editing formulas

  The result in cell D2 has changed after editing the cell's formula.

Introduction to Google Sheets

Calculating percentages

The bank account information spreadsheet with cell F2 highlighted.

Introduction to Google Sheets

Calculating percentages

The bank account information spreadsheet with cell F2 highlighted, and an equals sign in the cell to begin the formula.

Introduction to Google Sheets

Calculating percentages

The bank account information spreadsheet with cell F2 highlighted, an equals sign in the cell to begin the formula, and 900 - the value we want to calculate the percentage of.

Introduction to Google Sheets

Calculating percentages

The bank account information spreadsheet with cell F2 highlighted, an equals sign in the cell to begin the formula, 900 - the value we want to calculate the percentage of - and 0.8%, the percentage of 900 to take.

Introduction to Google Sheets

Calculating percentages

The bank account information spreadsheet with cell F2 highlighted, and the final value of the calculation, 7.2, displayed in the cell.

Introduction to Google Sheets

Let's practice!

Introduction to Google Sheets

Preparing Video For Download...