In this article I will show you how to extract the most frequent value (text or number) between two dates in a column.

Most common value between two dates in excel

Array formula in C17:

=INDEX(Values_col, MATCH(MAX(FREQUENCY(IF((Dates_col<=$B$15)*(Dates_col>=$B$14), COUNTIF(Values_col, "<"&Values_col), ""), COUNTIF(Values_col, "<"&Values_col))), FREQUENCY(IF((Dates_col<=$B$15)*(Dates_col>=$B$14), COUNTIF(Values_col, "<"&Values_col), ""), COUNTIF(Values_col, "<"&Values_col)), 0)) + CTRL + SHIFT + ENTER

Named ranges

Date_col (B2:B11)
Values_col (A2:A11)

What is named ranges?

Download excel file for this tutorial.

Most common value between two dates.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

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.

COUNTIF(range,criteria)
Counts the number of cells within a range that meet the given condition

FREQUENCY(data_array, bins_array)
Calculates how often values occur within a range of values and then returns a vertical array of numbers having one more element than Bins_array.

Related articles:

  • Share/Bookmark

Related posts:

  1. Most common value between two dates in a range in excel
  2. Count date records between two dates in a range in excel
  3. Count unique records by date in excel
  4. Count overlapping dates in excel
  5. Sum values between two dates with criteria in excel
  6. Convert date ranges into dates in excel
  7. Filter overlapping dates from date ranges in excel
  8. Filter common text values in range 1 and in range 2 using array formula in excel
  9. List dates outside specified date ranges in excel
  10. Extract dates from a cell block schedule in excel