Quick Reference - Excel Formulae
Quick Reference - Excel Formulae
Excel Formula
=COUNT(range) To find the no. of days apples were eaten:
Excel Formula
=MEDIAN(range)
1
GEI1001/GET1050 Computational Reasoning
Excel Formula
=MODE(range)
Excel Formula
=AVERAGE(range)
E.g.
• P15 – No locking
• $P15 – $ in front of the P locks Column P. So if you copy
the formula into cells on the left or right, Excel will not
automatically update the column in the formula. It will still
reference Column P (the row number will still update
Excel Formula accordingly)
Absolute Cell • P$15 – $ in front of the 15 locks Row 15. So if you copy
Reference ($) the formula into cells above or below, Excel will not
automatically update the row in the formula. It will still
reference Row 15 (the column letter will still update
accordingly)
• $P$15 – Locks the reference to cell P15. No matter where
you copy the formula, Excel will not update the reference
at all. It will always look to cell P15.
2
GEI1001/GET1050 Computational Reasoning
Excel Formula
=SUMIF(range, criteria,
[sum_range])
Excel Formula
=AVERAGEIF(range,
criteria, [sum_range])
Excel Formula
=COUNTIF(range,
criteria)
Excel Formula
=TEXT(value,
format_text)
3
GEI1001/GET1050 Computational Reasoning
Excel Formula
=RIGHT(text, num_chars)
Excel Formula
=LEFT(text,
num_chars)
Excel Formula
=IF(logical_test, [value
if true], [value if false])
4
GEI1001/GET1050 Computational Reasoning
Excel Formula
=OR(logical 1, logical
2, logical 3, …)
Excel Formula
=AND(Condition 1 to
evaluate, condition 2 to
evaluate)
Price
$1,200
$800
$400
$200
$0
Charts allow you to better Boké Ball Grate Ball Ultron Ball Potion Duper
Potion
Uber Potion Rebel
$1,200
$1,000
$400
Excel Function
Sort and Filter 1. Select the entire table
to be sorted (including
Allows for a more fine- headers)
grained analysis, making it 2. Under the “Home” tab,
easier to find patterns or click “Sort & Filter) on the
anomalies far right
Sorted by Stock
5
GEI1001/GET1050 Computational Reasoning
Excel Function
Conditional Formatting
6
GEI1001/GET1050 Computational Reasoning
IMPORTANT TIPS
VERY IMPORTANT:
• Ensure that every parameter is separated by a comma [e.g. =AND(T6="Ball", U6<400)]
• There must be an equal sign in front of every formula
• Text Values must be surrounded by quotation marks “” in formulae (e.g. “potato”). Note
that TRUE and FALSE are not text values and should not have quotation marks.
• ##### Values mean that the column width is not wide enough. Expand the column width
and the value should show.
Pro Tip 2: To select multiple cells separately, hold CTRL and click on the cells you want
Pro Tip 3: To auto-resize column width to contents, double-click in between column headers.
7
GEI1001/GET1050 Computational Reasoning
Pro Tip 4: You can hide columns by right-clicking the column header and clicking “Hide”. To
unhide hidden columns, right-click the space between the adjacent column headers and click
“Unhide”. Formulae that reference cells in hidden columns will still work.
Pro Tip 5: Easily copy formulae down a column for an entire table by selecting the cell and
double-clicking the dot at the bottom right.