Formulas and functions
Formulas and functions are extremely useful features. They make automatic calculations that update when the dataValues, typically letters or numbers. does.
Formulas
Formulas are usually simple calculations, eg adding two or more numbers together. They always start with an equals sign (=).
Symbols used in formulas
There are a number of symbols used in formulas or calculations. These are the most common ones:
- 鈥+鈥 add
- 鈥-鈥 subtract
- 鈥*鈥 multiply
- 鈥/鈥 divide
Functions
Functions make more complex calculations. Simple and regularly used functions include:
- SUM 鈥 adds values in selected cells
- MIN 鈥 finds smallest value
- MAX 鈥 finds largest value
- AVERAGE 鈥 finds the average value
- COUNT 鈥 counts how many of the selected cells have numbers in them
Like formulas, all functions start with an equals sign (=) followed by the function鈥檚 name, eg SUM, MIN, MAX, etc.
AutoSum
This feature writes a SUM function for you. Highlight or select the cells you want to add together then click the AutoSum button.
Advanced functions
- IF 鈥 change the value of a cell if something is true, eg if a customer鈥檚 total bill is over 拢100, deduct 10% from their bill.
- COUNTIF 鈥 adds up cells that meet a certain rule, eg count the number of students that achieved level 6.
- VLOOKUP 鈥 matches contents of a cell with an answer, eg how much is a pepperoni pizza?