W3Schools.com (2024)

Table of Contents
Formulas Chapter Summary

Formulas

A formula in Google Sheets is used to do mathematical calculations. Formulas always start with the equal sign (=) typed in the cell, followed by your calculation.

Formulas can be used for calculations such as:

  • =1+1
  • =2*2
  • =4/2=2

formulas can take cells as input.

Let's have a look at an example.

Type or copy the following values:

W3Schools.com (1)

Copy Values

Now we want to do a calculation with those values.

Step by step:

  1. Select C1 and type (=)
  2. Select A1
  3. Type (+)
  4. Select A2
  5. Press enter

W3Schools.com (2)

W3Schools.com (3)

You got it! You have successfully calculated A1(2) + A2(4) = C1(6).

Note: Using cells to make calculations is an important part of Google Sheets and you will use this a lot as you learn.

Lets change from addition to multiplication, by replacing the (+) with a (*). It should now be =A1*A2, press enter to see what happens.

W3Schools.com (4)

You got C1(8), right? Well done!

W3Schools.com (5)

Google Sheets is great in this way. It allows you to add values to cells and do calculations on them.

Now, try to change the multiplication (*) to subtraction (-) and dividing (/).

Delete all values in the sheet after you have tried the different combinations.

Let's add new data for the next example, where we will help the Pokemon trainers to count their Pokeballs.

Type or copy the following values:

W3Schools.com (6)

Copy Values

The data explained:

  • Column A: Pokemon Trainers
  • Row 1: Types of Pokeballs
  • Range B2:D4: Amount of Pokeballs, Great balls and Ultra balls

Note: It is important to practice reading data to understand its context. In this example you should focus on the trainers and their Pokeballs, which have three different types: Pokeball, Great ball and Ultra ball.

Let's help Iva to count her Pokeballs. You find Iva in A2(Iva). The values in row 2 B2(2), C2(3), D2(1) belong to her.

Count the Pokeballs, step by step:

  1. Select cell E2 and type (=)
  2. Select B2
  3. Type (+)
  4. Select C2
  5. Type (+)
  6. Select D2
  7. Hit enter

W3Schools.com (7)

W3Schools.com (8)

Did you get the value E2(6)? Good job! You have helped Iva to count her Pokeballs.

Now, let's help Liam and Adora with counting theirs.

Do you remember the fill function that we learned about earlier? It can be used to continue calculations sidewards, downwards and upwards. Let's try it!

Lets use the fill function to continue the formula, step by step:

  1. Select E2
  2. Fill E2:E4

W3Schools.com (9)

That is cool, right? The fill function continued the calculation that you used for Iva and was able to understand that you wanted to count the cells in the next rows as well.

Now we have counted the Pokeballs for all the trainers; Iva(6), Liam(12) and Adora(15).

Let's see how many Pokeballs Iva, Liam and Adora have in total.

The total is called SUM in Google Sheets.

There are two ways to calculate the SUM.

  • Adding cells
  • SUM function

Google Sheets has many pre-made functions available for you to use. The SUM function is one of the most used ones. You will learn more about functions in a later chapter.

Let's try both approaches.

Note: You can navigate to the cells with your keyboard arrows instead of right clicking them. Try it!

Sum by adding cells, step by step:

  1. Select cell E5, and type =
  2. Select E2
  3. Type (+)
  4. Select E3
  5. Type (+)
  6. Select E4
  7. Hit enter

W3Schools.com (10)

W3Schools.com (11)

The result is E5(33).

Let's try the SUM function.

Remember to delete the values that you currently have in E5.

SUM function, step by step:

  1. Type E5(=)
  2. Write SUM
  3. Double click SUM in the menu
  4. Mark the range E2:E4
  5. Hit enter

W3Schools.com (12)

W3Schools.com (13)

W3Schools.com (14)

Great job! You have successfully calculated the SUM using the SUM function.

Iva, Liam and Adora have 33 Pokeballs in total.

Let's change a value to see what happens. Type B2(7):

W3Schools.com (15)

The value in cell B2 was changed from 2 to 7. Notice that the formulas are doing calculations when we change the value in the cells, and the SUM is updated from 33 to 38. It allows us to change values that are used by the formulas, and the calculations remain.

Chapter Summary

Values used in formulas can be typed directly and by using cells. The formula updates the result if you change the value of cells, which is used in the formula. The fill function can be used to continue your formulas upwards, downwards and sidewards. Google Sheets has pre-built functions, such as SUM.

In the next chapter you will learn about relative and absolute references.


W3schools Pathfinder

Track your progress - it's free!

W3Schools.com (2024)
Top Articles
What Money Can't Buy: The Moral Limits of Markets | Dwight R. Lee
Deprovision Devices - Remove Device Management
Kreme Delite Menu
Amtrust Bank Cd Rates
Academic Integrity
Craigslist Kennewick Pasco Richland
Craigslist Mexico Cancun
Soap2Day Autoplay
What is international trade and explain its types?
Elden Ring Dex/Int Build
Decaying Brackenhide Blanket
Elle Daily Horoscope Virgo
Chastity Brainwash
Obituary | Shawn Alexander | Russell Funeral Home, Inc.
Scholarships | New Mexico State University
Rainfall Map Oklahoma
Grasons Estate Sales Tucson
7543460065
Nail Salon Goodman Plaza
Publix Super Market At Rainbow Square Shopping Center Dunnellon Photos
Curry Ford Accident Today
PowerXL Smokeless Grill- Elektrische Grill - Rookloos & geurloos grillplezier - met... | bol
2024 INFINITI Q50 Specs, Trims, Dimensions & Prices
Menards Eau Claire Weekly Ad
How your diet could help combat climate change in 2019 | CNN
Food Universe Near Me Circular
Air Traffic Control Coolmathgames
Amazing Lash Studio Casa Linda
Gazette Obituary Colorado Springs
Catchvideo Chrome Extension
Radical Red Ability Pill
Carroway Funeral Home Obituaries Lufkin
Criglist Miami
Salemhex ticket show3
Promatch Parts
O'reilly's Wrens Georgia
Nsu Occupational Therapy Prerequisites
Appraisalport Com Dashboard /# Orders
Sinai Sdn 2023
Weapons Storehouse Nyt Crossword
Mytime Maple Grove Hospital
Weather Underground Corvallis
Lovely Nails Prices (2024) – Salon Rates
The Latest Books, Reports, Videos, and Audiobooks - O'Reilly Media
Wera13X
How To Win The Race In Sneaky Sasquatch
Rise Meadville Reviews
28 Mm Zwart Spaanplaat Gemelamineerd (U999 ST9 Matte | RAL9005) Op Maat | Zagen Op Mm + ABS Kantenband
How to Find Mugshots: 11 Steps (with Pictures) - wikiHow
Dumb Money Showtimes Near Regal Stonecrest At Piper Glen
Elizabethtown Mesothelioma Legal Question
Obituaries in Westchester, NY | The Journal News
Latest Posts
Article information

Author: Francesca Jacobs Ret

Last Updated:

Views: 5442

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Francesca Jacobs Ret

Birthday: 1996-12-09

Address: Apt. 141 1406 Mitch Summit, New Teganshire, UT 82655-0699

Phone: +2296092334654

Job: Technology Architect

Hobby: Snowboarding, Scouting, Foreign language learning, Dowsing, Baton twirling, Sculpting, Cabaret

Introduction: My name is Francesca Jacobs Ret, I am a innocent, super, beautiful, charming, lucky, gentle, clever person who loves writing and wants to share my knowledge and understanding with you.