0% found this document useful (0 votes)
22 views

Excel Functions

The document describes various Excel functions for calculations, lookups, logical evaluations and more. It explains functions like SUM, AVERAGE, MAX, MIN, INT, ROUND, COUNT, COUNTA, COUNTIF, SUMIF, IF, HLOOKUP, VLOOKUP and how to use them in formulas. Formulas can reference cells within the same sheet or different sheets/files.

Uploaded by

Rayane
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Excel Functions

The document describes various Excel functions for calculations, lookups, logical evaluations and more. It explains functions like SUM, AVERAGE, MAX, MIN, INT, ROUND, COUNT, COUNTA, COUNTIF, SUMIF, IF, HLOOKUP, VLOOKUP and how to use them in formulas. Formulas can reference cells within the same sheet or different sheets/files.

Uploaded by

Rayane
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Excel Formulas

SUM Function
The SUM function is used to add more than two numbers together.

=SUM(B4:B8) =B4+B5+B6+B7
+B8
=SUM(D3,D8,D1 =D3+D8+D12
2)
=SUM(D5:D8,F2) =D5+D6+D7+D8
+F2

AVERAGE Function
To find the AVERAGE of two or more numbers: AVERAGE(B4:B8).
=AVERAGE(B4:B8) =(B4+B5+B6+B7+B8)/5
=AVERAGE(D3,D8,D12) =(D3+D8+D12)/3
=AVERAGE(D5:D8,F2) =(D5+D6+D7+D8+F2)/5

MAX Function
Will find the highest numeric value among numbers (or range) =MAX(B4:B8).

MIN Function
Will find the lowest numeric value among numbers (or range) =MIN(B4:B8).

INT Function
In mathematics, an integer is the word used to describe a Whole Number (with no
decimals or fractions).
In Excel, the INT function takes a number and removes all digits after the decimal
point. =INT(B10) (if it’s 15.8 it will make it 16).

ROUND Function
=ROUND(B10,0)
This uses the ROUND function which takes the contents of cell B10 and rounds the
number to 0 decimal places. IF the decimal point is 5 or above, the formula will round the
digit to the nearest whole number. (16.8 would become 17 for example)

COUNT Function
It is possible to count the number of numeric (number) values in a spreadsheet using the
COUNT function. =COUNT(A2:A19). This will look at the range A2 to A19 and count the
cells with numbers in them. Any cells that contain text or a combination of text and
numbers will be ignored.
COUNTA Function
Rather than just being able to count the number of numeric values (like the
COUNT function), COUNTA can count the number of numeric OR text vales in
a cell. It will NOT count any empty cells.

COUNTIF Function
The function needed for this task is COUNTIF. This looks at the cells within a
given range and counts the number of cells in that range that meet a certain
condition.
The condition can be a number, text, an inequality or a cell reference.
=COUNTIF($B$3:$B$21, “Director”) Counts the number of cells in the range B3 to B21 that
contain the word ‘Director’.
=COUNTIF(Job, “Director”) Counts the number of cells in the named range ‘Job’ (B3
to B21) that contain the word ‘Director’.
=COUNTIF($B$3:$B$21, A24) Counts the number of cells in the range B3 to B21 that
contain the same text as the contents of cell A24.
=COUNTIF(Job, A24) Counts the number of cells in the named range ‘Job’ (B3
to B21) that contain the same text as the contents of cell
A24

SUMIF Function
SUMIF works in a similar way to COUNTIF.
SUMIF compares each value in a range of cells and if the value matches the given condition
it will add another related cell to give a running total.
=SUMIF($B$3:$B$21,A35,$C$3:$C$21)
This will look at the contents of each cell in the range B3 to B21 and then compare their
values to the contents of cell A35.

IF Function
An IF function is made up of 3 parts:
A condition
What to do if the condition is met
What to do if the condition is not met.

An example of an IF function is shown


below:
=IF(A1=5, A2*0.5, “No discount”)
=IF(C3>=10,”Very experienced”, “Not very experienced”)

Nested IF Function
=IF(C3>=10,”Very experienced”,
IF(C3>=5,”Experienced”, “Not
experienced”))
The second formula (highlighted in
yellow), takes the place of the ‘If the
condition is not met’ part of the first
formula.

HLOOKUP (Horizontal Lookup)


HLOOKUP is a function that performs a horizontal look-up of data. (search)
HLOOKUP should be used when the values you wish to compare your data with are
stored in a single row. The values to be looked up are stored in the rows below the
comparison values
=HLOOKUP(B6, $B$2:$H$3, 2, FALSE)
This formula will look up and compare the
contents of cell B6 with the contents of
each cell in the top row of the range B2 to
H3.
When it finds a match, it will take the value
or label stored in the second row which is
directly under the matched cell.

VLOOKUP (Vertical Lookup)


VLOOKUP is a function that performs a vertical look-up of data.
VLOOKUP should be used when the values you wish to compare your data with are
stored in a single column. The values to be looked up are stored in the columns to the
right of the comparison values.
=VLOOKUP(B3, $J$3:$K$9, 2, FALSE)
This formula will look up and
compare the contents of cell B3 with
the contents of each cell in the 1st
column of the range J3 to K9.
When it finds a match, it will take the
value or label stored in the second
column which is to the right of the
matched data.

Using VLOOKUP between different spreadsheet files (Also applies to HLOOKUP)

=VLOOKUP(B3, Client.csv!$A$2:$B$8, 2, FALSE)


This formula will look up and compare the contents of cell B3 with the contents of each
cell in the 1st column of the range A2 to B8 within the file CLIENT.CSV.

You might also like