Return multiple values if above frequency criterion in excel
Students are allowed to sign up to maximum two courses. How do I filter students who have signed up for more than 2 courses?
Answer:
Array formula in B25:
=INDEX(tbl, SMALL(IF((COUNTIF(tbl, tbl)>=3)*(ISTEXT(tbl))*NOT((COUNTIF($B$24:B24, tbl))), ROW(tbl)-MIN(ROW(tbl))+1, ""), 1), (SMALL(IF((COUNTIF(tbl, tbl)>=3)*(ISTEXT(tbl))*NOT((COUNTIF($B$24:B24, tbl))), ((ROW(tbl)-MIN(ROW(tbl))+1)+(COLUMN(tbl)-MIN(COLUMN(tbl))+1)/16384)*1, ""), 1)-SMALL(IF((COUNTIF(tbl, tbl)>=3)*(ISTEXT(tbl))*NOT((COUNTIF($B$24:B24, tbl))), ROW(tbl)-MIN(ROW(tbl))+1, ""), 1))*16384) + CTRL + SHIFT + ENTER copied down as far as needed.
Named ranges
tbl (B3:D21)
What is named ranges?
Download excel sample file for this tutorial.
Return multiple values if above frequency criterion.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
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
COUNTIF(range,criteria)
Counts the number of cells within a range that meet the given condition
SMALL(array,k) returns the k-th smallest row number in this data set.
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
ROW(reference) returns the rownumber of a reference
COLUMN(reference)
returns the column number of a reference
ISTEXT(value)
Checks whether a value is text, and returns TRUE or FALSE
NOT(logical)
Changes FALSE to TRUE, or TRUE to FALSE
Related posts:
- Lookup values in a range using two or more criteria and return multiple matches in excel
- Filter duplicate text values in a range using “begins with” criterion in excel
- How to return multiple values using vlookup in excel
- Extract duplicate text values from a range containing both numerical and text values in excel
- Filter unique text values using “begins with” criterion in a range in excel
- Filter text values existing in range 1 but not in range 2 using array formula in excel
- Filter unique distinct text values using “begins with” criterion in a range using array formula in excel
- Return multiple values if in range in excel
- Filter unique text values from a range containing both numerical and text values in excel
- Filter common text values in range 1 and in range 2 using array formula in excel




January 20th, 2010 at 2:46 am
I know something much easier:
Make one list out of all these lists and sort this list by name.
Or create a pivot table and count frequency by name.
Kind reagrds,
Pieter