Lab 3
Lab 3
1. OFFSET function
Purpose
Create a reference offset from given starting point
Return value
A cell reference.
Syntax
=OFFSET(reference,rows,cols,[height],[width])
cols - The number of columns to offset to the right of the starting reference.
Example.
In the screen below, we use OFFSET to return the third value (March) in the second
column (West). The formula in H4 is:
=OFFSET(B3,3,2) // returns D6
Example #2
In the screen below, we use OFFSET to return the last value (June) in the third
column (North). The formula in H4 is:
=OFFSET(B3,6,3) // returns E9
Example #3
Below, we use OFFSET to return all values in the third column (North). The formula
in H4 is:
2. MAX Function
The Excel MAX function returns the largest numeric value in the data provided. MAX ignores
empty cells, the logical values TRUE and FALSE, and text values.
Syntex.
=MAX(number1,[number2],...)
number1 - Number, reference to numeric value, or range that contains
numeric values.
Mixed arguments
The MAX function can accept a mix of arguments:
=MAX(5,10)
=MAX(A1,A2,A3)
=MAX(A1:A10,100)
=MAX(A1:A10,C1:C10)
3. SORT Function
=SORT(array,[sort_index],[sort_order],[by_col])
Basic Examples
To sort a range by the first column in ascending order: