Create unique distinct list from column where an adjacent column meets criteria
Question: I want a unique list to be created from a column where an adjacent
column has cell values between 2 and 8?
Answer:
To the right is a picture of the list I will be working with. I created named ranges, List_category (A2:A11) and a named range for the start cell of the list, List_category_start (A2).
List_value (A2:A11) and a named range for the start cell of the list, List_value_start (A2).
This formula is long. I am sure it can be done shorter. Formula in E5:E14:
=IF(COUNT(IF(IF(ISERROR(MATCH(IF(($F$1<List_value)*($F$2>List_value), List_category, ), IF(($F$1<List_value)*($F$2>List_value), List_category, ""), 0)), "", MATCH(IF(($F$1<List_value)*($F$2>List_value), List_category, ), IF(($F$1<List_value)*($F$2>List_value), List_category, ""), 0))=(ROW(List_category)-ROW(List_category_start)+1), MATCH(IF(($F$1<List_value)*($F$2>List_value), List_category, ), IF(($F$1<List_value)*($F$2>List_value), List_category, ""), 0), ""))>=(ROW(List_category)-ROW(List_category_start)+1), INDEX(List_category, SMALL(IF(IF(ISERROR(MATCH(IF(($F$1<List_value)*($F$2>List_value), List_category, ), IF(($F$1<List_value)*($F$2>List_value), List_category, ""), 0)), "", MATCH(IF(($F$1<List_value)*($F$2>List_value), List_category, ), IF(($F$1<List_value)*($F$2>List_value), List_category, ""), 0))=(ROW(List_category)-ROW(List_category_start)+1), MATCH(IF(($F$1<List_value)*($F$2>List_value), List_category, ), IF(($F$1<List_value)*($F$2>List_value), List_category, ""), 0), ""), (ROW(List_category)-ROW(List_category_start)+1))), "") + Ctrl + Shift+ Enter
Yellow cells are user input cells. See picture below.
Download excel sample file for this tutorial.
unique-list-with-criteria.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
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
SMALL(array,k) returns the k-th smallest row number in this data set.
ROW(reference) returns the rownumber of a reference
MATCH(lookup_value;lookup_array; [match_type])
Returns the relative position of an item in an array that matches a specified value
COUNT(value1;[value2])
Counts the number of cells in a range that contain numbers
ISERROR(value)
Checks whether a value is an error and returns TRUE or FALSE
This blog article is one out of thirteen articles on the same subject "unique".
- How to extract a unique distinct list from a column in excel
- Extract a unique distinct list from two columns using excel 2007 array formula
- Extract a unique distinct list from three columns in excel
- Extract distinct unique sorted year and month list from a date series in excel
- Create a unique distinct list from a date range in excel
- Unique values from multiple columns using array formulas
- Extract a unique distinct list sorted from A-Z from range in excel
- Sort a range by occurence using array formula in excel
- Filter unique distinct values from two ranges combined in excel 2007
- Create a unique list and sort by occurrances from large to small
- Unique list to be created from a column where an adjacent column has text cell values
- Create unique list from column where an adjacent column meets criteria
- How to create a unique distinct list where other columns meet two criteria
Related posts:
- Create a list of distinct values from a list where an adjacent cell value meets a criteria in excel
- How to create a unique distinct list where other columns meet two criteria
- Create a list of duplicates where adjacent cell value meets a condition in excel
- Unique list to be created from a column where an adjacent column has text cell values
- Create and sort distinct list by adjacent cell value size
- Create a unique distinct list from a date range in excel
- Unique distinct list from a column sorted A to Z using array formula in excel
- Unique distinct list sorted based on occurrance in a column in excel
- Filter a column and create a new unique list sorted from A to Z using array formula in excel
- Create a unique distinct list and sort by occurrances from large to small




Leave a Reply