Lookup min max values within a date range

Extracting the largest value within the date range specified in C3 and E3

Array formula in C5:

=MAX(IF((Date_col<=$E$3)*(Date_col>=$C$3), Close_col, "")) + CTRL + SHIFT + ENTER

Extracting the smallest value within the date range specified in C3 and E3

Array formula in C6:

=MIN(IF((Date_col<=$E$3)*(Date_col>=$C$3), Close_col, "")) + CTRL + SHIFT + ENTER

Extracting the adjacent date where the largest value is

Array formula in E5:

=INDEX(Date_col, MATCH(MAX(IF((Date_col<=$E$3)*(Date_col>=$C$3), Close_col, 0)), Close_col, 0)) + CTRL + SHIFT + ENTER

Extracting the adjacent date where the smallest value is

Array formula in E6:

=INDEX(Date_col, MATCH(MIN(IF((Date_col<=$E$3)*(Date_col>=$C$3), Close_col, "")), Close_col, 0)) + CTRL + SHIFT + ENTER

Named ranges

Date_col (B9:B38)
Close_col (C9:C38)

What is named ranges?

Download excel file for this tutorial.

Lookup min max values in a date range.xls
(Excel 97-2003 Workbook *.xls)

Functions in this article:

MATCH(lookup_value;lookup_array; [match_type]
Returns the relative position of an item in an array that matches a specified value

INDEX(array,row_num,[column_num])
Returns a value or reference of the cell at the intersection of a particular row and column, in a given range

MIN(number1,[number2])
Returns the smallest number in a set of values. Ignores logical values and text

SMALL(array,k) returns the k-th smallest row number in this data set.

ROW(reference) returns the rownumber of a reference

IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE

MAX(number1,[number2],)
Returns the largest value in a set of values. Ignores logical values and text.