Spreadsheet - Functions
Spreadsheet - Functions
Computer
Fundamentals
Parameters or Arguments
range: Therange of cells that you want to count
based on the criteria.
criteria: The criteria used to determine which cells
to count.
COUNTIF
Returns
The COUNTIF function returns a numeric value.
Example
=COUNTIF(A2:A7, D2) Result: 1
=COUNTIF(A:A, D2) Result: 1
=COUNTIF(A2:A7, ">=2001") Result: 4
SUMIF
The SUMIF function is a worksheet function
that adds all numbers in a range of cells
based on one criteria.
Syntax:
SUMIF( range, criteria, [sum_range] )
SUMIF
Parameters or Arguments
range: The range of cells that you want to apply
the criteria against.
criteria: The criteria used to determine which cells
to add.
sum_range: Optional. It is the range of cells to
sum together. If this parameter is omitted, it
uses range as the sum_range.
Returns
The SUMIF function returns a numeric value.
SUMIF Example
=SUMIF(A2:A6, D2, C2:C6) Result: 218.6 'Criteria is the
value in cell D2
=SUMIF(A:A, D2, C:C) Result: 218.6 'Criteria applies
to all of column A (ie: A:A)
=SUMIF(A2:A6, 2003, C2:C6) Result: 7.2 'Criteria is the
number 2003
=SUMIF(A2:A6, ">=2001", C2:C6) Result: 12.6 'Criteria
is greater than or equal to 2001
VLOOKUP
The VLOOKUP function performs a vertical
lookup by searching for a value in the first
column of a table and returning the value in
the same row in the index_number position.
Syntax
VLOOKUP( value,table, index_number,
[approximate_match] )
VLOOKUP
Parameters or Arguments
value: The value to search for in the first column
of the table.
table:Two or more columns of data that is sorted
in ascending order.
index_number: The column number in table from
which the matching value must be returned. The
first column is 1.
approximate_match: Optional. Enter FALSE to
find an exact match. Enter TRUE to find an
approximate match. If this parameter is omitted,
TRUE is the default.
VLOOKUP
Returns
The VLOOKUP function returns any datatype such as a
string, numeric, date, etc.
If you specify FALSE for the approximate_match parameter
and no exact match is found, then the VLOOKUP function
will return #N/A.
If you specify TRUE for the approximate_match parameter
and no exact match is found, then the next smaller value is
returned.
If index_number is less than 1, the VLOOKUP function will
return #VALUE!.
If index_number is greater than the number of columns
in table, the VLOOKUP function will return #REF!.
VLOOKUP Example
=VLOOKUP(10251, A1:B6, 2, FALSE) Result: "Pears"
'Returns value in 2nd column
=VLOOKUP(10251, A1:C6, 3, FALSE) Result: $18.60
'Returns value in 3rd column
=VLOOKUP(10251, A1:D6, 4, FALSE) Result: 9 'Returns
value in 4th column
References/Sources
https://corporatefinanceinstitute.com/resources/
excel/study/basic-excel-formulas-beginners/
https://www.techonthenet.com/excel/formulas/in
dex.php