How to automatically create a unique distinct list and remove blanks
Question: How do I create a unique distinct list from a list containing several blanks?
Answer:
Array formula in B2:
=INDEX($A$2:$A$11, MATCH(0, IF(ISBLANK($A$2:$A$11), 1, COUNTIF(B1:$B$1, $A$2:$A$11)), 0)) + CTRL + SHIFT + ENTER copied down as far as necessary.
Download excel sample file for this tutorial.
unique-values-from-list-with-several-blanks.xls
(Excel 97-2003 Workbook *.xls)
Functions used 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
MATCH(lookup_value;lookup_array; [match_type])
Returns the relative position of an item in an array that matches a specified value
ISBLANK(value)
Checks whether a reference is to an empty cell and returns TRUE or FALSE
COUNTIF(range,criteria)
Counts the number of cells within a range that meet the given condition
Related posts:
- Extract a unique distinct list sorted alphabetically removing blanks from a range in excel
- How to automatically fill all blanks with missing data or formula
- Create a list of dates with blanks between quarters in excel
- Invert a list ignoring blanks in excel
- Create unique distinct list sorted based on text length using array formula in excel
- Delete blanks and errors in a list
- Create a drop down list containing only unique distinct alphabetically sorted text values using excel array formula
- Create a unique distinct text list from a range containing both numerical and text values in excel
- Create a unique distinct list from a date range in excel
- Create a unique distinct alphabetically sorted list, extracted from a column in excel




January 20th, 2010 at 9:20 am
i cannot use an array formula for certain reasons. is there any other way?
January 20th, 2010 at 10:17 pm
Can you use a vba macro? Maybe someone at http://www.excelforum.com/ can help you.