MS Excel Formulas List
MS Excel Formulas List
m
Use your mouse to select a cell or range of cells to be used in a formula Click on the cell to select it.
The formula bar will display the content of the
o
The operators for building formulae are: selected cell.
.c
+ Add * Multiply
- Subtract / Divide
m
If the cell does contain a formula, double click on the cell.
This will colour any cells on the current worksheet that feed into that
sa
BODMAS rules apply to arithmetic (Brackets Over Division, then formula, to help you work out what that formula does and how it works.
Multiplication, then Addition, then Subtraction).
As
Always press ESC to stop checking/editing a cell containing a formula.
Avoid typing variables (such as tax rates) in formulae; instead type the This guarantees that you will leave the formula as you found it.
variable in a separate cell and refer to that cell in the formula
ob Do NOT click your mouse elsewhere on the sheet to stop checking as th is
To repeat a formulae down a column, build the formula in the first cell of may break the formula.
lJ
the column, then use autofill to copy the formula down the column.
How to check which cells on a sheet contain formulae
Al
There is a way to show all formulae on a worksheet before you start using it:
Functions follow the format =name(arguments) where:
On the Formulas tab, click on the Show Formulas icon
name = the name of the function (e.g. SUM, VLOOKUP)
Any cells with formulae will show the formula instead of the result
arguments =the cell or range references containing the values
To switch this off, go back to the Formulas tab and click on the Show
used in the function
Formulas icon
Where a function contains more than one argument, each argument must be
separated by a , (comma). The shortcut for this is CTRL `
How to check what a formula is doing Building a formula to subtract
Use this technique to check that your formulae are doing what you think:
1. Click in the cell where the result of the formula will appear
Click on the cell containing the formula.
m
1. Click in the cell where the result of the f ormula will appear 5. Click on the next cell containing data to be included in the calculation
2. Type = 6. Press ENTER on the keyboard.
o
3. Click on the first cell containing
.c
data to be included in the sum Building a formula to multiply or divide
4. Type +
m
1. Click in the cell where the result of the formula will appear
5. Click on the next cell containing
sa
data to be included in the sum
6. Repeat steps 4 and 5 as required.
As
7. Press ENTER on the keyboard. 2. Type =
3. Click on the first cell containing data to be included in the calcul ation
Autosum to add row or column totals ob 4. Type * to multiply or / to divide
This only works where the total is to appear at the end 5. Click on the next cell containing data to be included in the calculation
6. Press ENTER on the keyboard.
lJ
of the column or row of data. This technique will not
work across worksheets.
Al
m
CTRL+A Select all data (one cell in data set must be selected)
Always double-click on some of the newly populated cells to check that
CTRL + SHIFT + * Selects an entire data table
o
the copied formula is still doing what you expect.
.c
If your copied formula is not behaving as it should, it is likely that your
m
original formula references a single cell that should be used in all of the
Use insert function (formula builder) to make formula. In this case, you will need to make the cell reference absolute. See
sa
formulae easier Absolute references for common variables for more information.
Start to type your formula until the first bracket e.g. =VLOOKUP(
As
On the formula bar, click on the function button
The pop-up window splits the formula into its arguments Relative cell references
To select cells to add them to the formula click on the
ob icon to jump When you use the autofill technique to copy a formula down a column or
back to the worksheet. To return to the formula builder after selecting across a row, Excel will automatically update the cell references in the
lJ
cells click on the icon again. formula, relative to where the copied formula sits.
Al
Cell reference Copied down the column… Copied across the row…
A2 …becomes A3 …becomes B2
A3 …becomes A4 …becomes B3
A4 …becomes A5 …becomes B4
m
cell, your formula will not work properly unless you make the referenc e to
the variable cell absolute (instead of relative) Mixed cell references
o
When copying formulae to other cells, sometimes you only want to
.c
There are 2 ways to make a formula absolute (which you choose is up to
anchor the column letter or row number of a cell reference within the
you):
m
original formula. This is achieved by changing the position of the dollar
Naming the variable cell
signs mentioned above. A quick way to do this:
sa
Using $ signs to indicate that a cell reference is absolute
Click on the cell containing the formula
As
Click once on the cell reference in the formula bar
Name cells or ranges for easier to read formulas
Press F4 until the cell reference meets your requirements (see below)
This technique has the advantage that formulae become easier to read.
The disadvantage is not many people understand the technique.
ob Relative v absolute v mixed cell references
This table shows how the different $ sign positions affect the cell
lJ
Select the cell or range you want to name
references in a formula when copied:
Click in the Name box (left of the formula bar)
Al
m
condition test
TRUE and FALSE are the
o
only possible answers.
Test that more than To change the content of
.c
one condition is true.
a cell as the result of an
m
AND =AND(condition test 1, condition test 2, ...) =AND(A1>20,B1=”Gold”) AND function, use the
Test result is TRUE
only if all conditions AND function as the
sa
are met. condition test in an IF
statement
As
Test that more than
one condition is true.
VLOOKUP
Where several spreadsheets use the same data, it is useful to have one sheet holding that data and then allow the other sheet s to reference that information
m
using the VLOOKUP function. This allows you to maintain data centrally. Any updates will automatica lly update the other sheets.
o
.c
m
Main data sheet
sa
As
The format of the VLOOKUP function is:
=VLOOKUP(lookup value, table range holding the master data, number of the column containing the answer to your question, FALSE)
ob
For example, in the diagram above cell D2 would contain: When using VLOOKUP for numerical data, you can omit FALSE from the
lJ
=VLOOKUP(C2,Main_data_sheet A2:D4, 3,FALSE) function to find the closest match (next lowest value):
Al
to search the table on the right, for the relevant fee for course code UB200. =VLOOKUP(lookup value, table range holding the master data, number of
the column containing the answer to your question)
FALSE tells excel to only find an answer if an exact match is found for the
lookup value. For VLOOKUP to work, the data table must be sorted in ascending order on
If no match is found (e.g. course code UB150), Excel will display #N/A. the lookup column (e.g. the course code column A in the example above)
Flash Fill (Excel 2013 & 2016 only) To split the contents of a column into 2 columns
This tool is amazing for working with text in databases. In earlier versions, For example, you can separate a column of full names into first and last
you needed to know several text functions to achieve the same results. name columns.
Type the desired result in the first cell of the series and press ENTER Insert a new column to the right of the column you want to spl it
Start typing the desired result in the second cell in the series. Select the column that you want to split
Excel should suggest content for that and all other cells in the column. On the Data tab click on the text to columns icon
Press ENTER to fill the column. In the pop-up window, check that Delimited is selected and click on
Next
Some examples: In the Delimiters section, indicate what separates the first bit of text from
the second.
m
To merge first name and last name in one column o E.g. if a space separates first and last name, click on Space
Type the full name in the first cell of a new column o The example shows how to indicate that 2 pieces of
o
Start typing the full name in the second cell of the information are separated by a hyphen
.c
new column o Click on Next and then on Finish
m
Press ENTER when Excel suggests the full name for
every cell in the column
sa
To extract the initials from 2 columns
As
Type the initials in the first cell of a new column
Start typing the initials in the second cell of the new
column
Press ENTER when Excel suggests the initials for
ob
lJ
every cell in the column
Al
m
choose New Rule. Click on the Recommended PivotTables icon.
o
In the list, click to choose Use a Click on the suggested PivotTables on
.c
formula to determine which cells the left of the pop-up window to see the
to format
m
table in more detail.
In the formula box type
sa
=ISFORMULA(A1)
To create a PivotTable, click on the
Click on the Format button.
PivotTable you require and click OK.
As
Choose the format you require. e.g. to
colour all cells containing a formula:
o Click on the Fill tab ob The PivotTable will be created on its
own worksheet.
o Click on a colour for the cell
o Click OK.
lJ
Click OK. Creating a chart from a Pivot Table
Al
Once you’ve created a simple Pivot Table using the steps above, creating a
All cells containing a formula will be chart to go with it is easy:
coloured. Click on the Pivot Table to select it.
On the Pivot Table Tools ANALYZE tab, click on the PivotChart
icon
Choose a chart type
Click OK.