Most common value between two dates in excel
In this article I will show you how to extract the most frequent value (text or number) between two dates in a column.
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:
- Most common value between two dates in excel
- Count records between two dates in excel
- Count unique distinct records in a date range
- Count unique records by date
Related posts:
- Most common value between two dates in a range in excel
- Count date records between two dates in a range in excel
- Count unique records by date in excel
- Count overlapping dates in excel
- Sum values between two dates with criteria in excel
- Convert date ranges into dates in excel
- Filter overlapping dates from date ranges in excel
- Filter common text values in range 1 and in range 2 using array formula in excel
- List dates outside specified date ranges in excel
- Extract dates from a cell block schedule in excel



Leave a Reply