Lookup min max values within a date range in excel
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.
Related posts:
- Lookup two index columns using min max values and a date range as criteria
- How to calculate missing months in a given date range in excel
- Finding the nearest date in a range of dates using excel formula
- Lookup values in a range using two or more criteria and return multiple matches in excel
- Lookup a value and find max date in excel
- Formula for matching a date within a date range in excel
- Count unique distinct values using date criteria in a range in excel
- Extract dates and adjacent value in a range using a date critera in excel
- Largest value in a range using date criteria in excel
- Sort dates within a date range using excel array formula



Leave a Reply