Parentheses in Google Sheets
Parentheses
Parentheses ()
are used to change the order of a mathematical operation. Using parentheses causes Google Sheets to perform the calculation for the numbers inside the parentheses first, before calculating the rest of the formula.
Parentheses are added by typing ()
for both sides of the numbers, like (1+2)
.
For example:
No parentheses
=10+5*2
The result is 20 because it calculates 10+10.
With parentheses
=(10+5)*2
The result is 30 because it calculates (15)*2
Formulas can have parentheses.
=(10+5)+(2*4)+(4/2)
Note: Cells can be used as values in formulas inside parentheses, like =(A1+A2)*B5 . The article used manual entries in its examples to keep things simple.
Now let's look at some real-world examples in Google Sheets.
No parentheses
The result is 17 , the calculation is 2+15 . It uses 15 because 3*5=15 .
There is 1 parenthesis
The result is 25, the calculation is 5*5 . Google Sheets uses 5 because it calculated the numbers inside the parentheses (2+3)=5 first.
With multiple parentheses
The result is 17 , the calculation is 5+8+4 . The numbers in parentheses are calculated first.
Nested parentheses
When using more advanced formulas, you may need to nest parentheses. You can think of this like an onion, with multiple layers. Google Sheets will calculate the numbers inside the parentheses first, then calculate each layer, starting with the innermost layer.
Non-nested example
=2*2+3*4+5*5*2
Calculate values just like you would with a calculator.
Nesting example
=((2*2)+(3*4)+(5*5))*2
Let's analyze to understand better:
Nesting creates layers like an onion. You can use multiple layers. This example uses two layers, an inner layer and an outer layer.
Start by calculating the numbers in the inner layer:
=((2*2)+(3*4)+(5*5))*2
=(4 + 12 + 25)*2
Calculate the inner layer=(41)*2
Calculate the outer layer82
Parentheses can be used to change the order of a calculation. Numbers inside the parentheses are calculated first. A formula can have multiple sets of parentheses. More advanced formulas can nest parentheses to create layers of operations, like an onion. The innermost layer is calculated first, then the next layer, and so on.
You should read it
- How to align spreadsheets before printing on Google Sheets
- How to enter 0 in Google Sheets
- How to create a phone number can be called on Google Sheets
- How to view editing history on Google Sheets
- 6 useful functions in Google Sheets you may not know yet
- How to fix Google Sheets not allowing scrolling
- How to count words on Google Sheets
- How to set up the right to edit spreadsheets on Google Sheets
May be interested
- How to write notes, comments on Google Sheetson google sheets has a comment writing feature, notes in the data box can help users understand the content while working online with many people.
- How to insert checkboxes on Google Sheetsadding checkboxes to optional list data on google sheets makes it easier for users to manage content.
- 5 Google Sheets features you should knowyou may be familiar with the basic concepts of google sheets, but google spreadsheets have many great features you may not know. this article will introduce you to 5 useful features of google sheets.
- How to convert Google Sheets to PDFgoogle sheets is indeed a useful online tool, but it's not always the best spreadsheet presentation. for this, a pdf file may be a better choice.
- How to perform simultaneous searches in multiple Google Sheetsneed to search in multiple google sheets sheets at once? this sounds complicated, but it's actually very simple.
- How to use and customize themes in Google Sheetsif you want to add consistency and aesthetics to your google sheets spreadsheets, consider using custom interfaces.
- How to change dots into commas on Google Sheetson google sheets there is also the option to change the dot to a comma to separate thousands in the data.
- AI Tools for Google Sheetsknowing how to use the right artificial intelligence (ai) tools for google sheets can take your productivity to the next level. here are some great ai tools specifically for google sheets.
- How to arrange alphabetical order in Google Sheetssorting alphabetical words is a fundamental requirement when we work with data tables on excel or google sheets.
- Keep track of the stock market with Google Sheetsnot only does it help with calculating tasks, making statistics lists, google sheets also owns a feature that few people know, which is to monitor the stock value over time, constantly updated.