Solved

# Unique Data validation List

Posted on 2013-05-30
458 Views
Hi,

I have date alike this starting from cell I2 (could be up to cell I999)

DATAA
DATAB
DATAA
DATAC
DATAB

However, I want to do a data validation based on unique values on I2:I999 and have it display on these

DATAA
DATAB
DATAC

Any help is appreciated!
0
Question by:Shanan212
• 2
• 2

LVL 19

Expert Comment

It would be done by pivot table - pivot table will extract you unique values and then you can copy/paste it to another column, or use directly from pivot table as source (see my attached example)
sample.xlsx
0

LVL 13

Author Comment

Hi Helpfinder,

Thanks but I am looking for a formula to put under Data Validation as I do not have space for pivot table or have methods to refresh pivot table, every time user enters data (cannot use VBA)
0

LVL 23

Accepted Solution

NBVC earned 450 total points
You will need to create a separate list using formulas first to get the unique data.

Say your list is currently in K2:K7, then say in L2 enter formula:

=IFERROR(INDEX(\$K\$2:\$K\$7,MATCH(0,INDEX(COUNTIF(\$L1:L\$1,\$K\$2:\$K\$7),0),0)),"")

copied down same number of cells to ensure all uniques are gotten.

Then name the entire column, say MyData,

Then for Data Validation|List formula use:

=INDEX(MyData,2):INDEX(MyData,COUNTIF(MyData,"?*"))
0

LVL 19

Assisted Solution

helpfinder earned 50 total points
I am not sure if possible to add such formula directly into Data Validation formula field - here is a solution probably suitable for you with formula, but anain only as formula for separate column which you cat use for Data Validation as source - see attached file
sample.xlsx
0

LVL 13

Author Closing Comment

Thanks Helpfinder & NB. NB had the complete solution.
0

## Join & Write a Comment Already a member? Login.

### Suggested Solutions

This article will show you how to use shortcut menus in the Access run-time environment.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

#### 728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

#### Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!