Question: How do I create a unique distinct list from a list containing several blanks?

unique-list-and-remove-blanks

Answer:

unique-list-and-remove-blanks-2

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

  • Share/Bookmark

Related posts:

  1. Extract a unique distinct list sorted alphabetically removing blanks from a range in excel
  2. How to automatically fill all blanks with missing data or formula
  3. Create a list of dates with blanks between quarters in excel
  4. Invert a list ignoring blanks in excel
  5. Create unique distinct list sorted based on text length using array formula in excel
  6. Delete blanks and errors in a list
  7. Create a drop down list containing only unique distinct alphabetically sorted text values using excel array formula
  8. Create a unique distinct text list from a range containing both numerical and text values in excel
  9. Create a unique distinct list from a date range in excel
  10. Create a unique distinct alphabetically sorted list, extracted from a column in excel