SPAN Function
Extracts a span of rows and columns defined by a pair of row numbers and a pair of column numbers from a range/array.
SPAN is a multi-threaded non-volatile dynamic array function.
SPAN Syntax
SPAN( Range_Array, [Row_Pair], [Column_Pair])
Range_Array (required)
The range or array to be used as the source for the extraction.
If Range_Array is a Range reference then SPAN will return a Range, otherwise SPAN will return an array.
Row_Pair (Optional)
A pair of values given as a range or array that defines the start and end rows within Range_Array to extract. If omitted all the rows in Range_Array will be used.
Column_Pair (Optional)
A pair of values given as a range or array that defines the start and end columns within Range_Array to extract. If omitted all the columns in Range_Array will be used.
Handling of errors and out of bounds conditions
If any of the pair values exceed the bounds of Range_Array an error will be returned.