PC Review


Reply
Thread Tools Rate Thread

Data Validation using List (But needs unique list in drop down lis

 
 
=?Utf-8?B?VGFu?=
Guest
Posts: n/a
 
      8th Jul 2005
Hi all,

In sheet 1, column A is my title name while column B is person name.
Sheet 1 is my database where i do data entry in this.

In sheet 2, contains my query page. In cell A5, i uses data validation -
list, on this cell. Say in sheet 1 :

column A column B
XXXXXXX Mr A
YYYYYYYY Mr A
ZZZZZZZZ Mr A
AAAAAAA Mr B
WWWWW Mr C
DDDDDDD Mr C

But In sheet 2, cell A5, I saw in the drop down list as follows:

Mr A
Mr A
Mr A
Mr B
Mr C
Mr C


But i want to see this in cell A5 instead (Unique name that is) :

Mr A
Mr B
Mr C

Thanks a lot.....
 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      8th Jul 2005
One play ..

In Sheet1, in B1 down is the names list

Mr A
Mr A
Mr A
Mr B
Mr C
Mr C
etc

Put in C1:
=IF(ISERROR(SMALL(D,ROWS($A$1:A1))),"",INDEX(B:B,MATCH(SMALL(D,ROWS($A$1
:A1)),D)))

Put in D1:
=IF(B1="","",IF(COUNTIF($B$1:B1,B1)>1,"",ROW()))

Select C11, fill down to say, D100 to cover the max expected data in col B

Create a dynamic range "MyNames"
----------
Click Insert > Name > Define

Put in "Names in workbook:" box : MyNames

Put in the "Refers to:" box:
=OFFSET(Sheet1!$C$1,,,SUMPRODUCT(--(Sheet1!$C$1:$C$100<>"")))

In Sheet2
----------
Select A5
Click Data > Validation
Under "Allow:", select: List
Source: =MyNames
Click OK

The DV droplist in A5 will show only the unique list of names, viz. for the
sample data in Sheet1, it'll appear as:

Mr A
Mr B
Mr C

Adapt to suit ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
"Tan" <Tan @discussions.microsoft.com> wrote in message
news:1E5B348B-0460-404A-B795-(E-Mail Removed)...
> Hi all,
>
> In sheet 1, column A is my title name while column B is person name.
> Sheet 1 is my database where i do data entry in this.
>
> In sheet 2, contains my query page. In cell A5, i uses data validation -
> list, on this cell. Say in sheet 1 :
>
> column A column B
> XXXXXXX Mr A
> YYYYYYYY Mr A
> ZZZZZZZZ Mr A
> AAAAAAA Mr B
> WWWWW Mr C
> DDDDDDD Mr C
>
> But In sheet 2, cell A5, I saw in the drop down list as follows:
>
> Mr A
> Mr A
> Mr A
> Mr B
> Mr C
> Mr C
>
>
> But i want to see this in cell A5 instead (Unique name that is) :
>
> Mr A
> Mr B
> Mr C
>
> Thanks a lot.....



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation - List of unique values Oscar Microsoft Excel Misc 2 17th Feb 2010 01:59 PM
Data Validation Unique List & Alphabetized =?Utf-8?B?Q2FzZXk=?= Microsoft Excel Programming 2 18th Jun 2007 04:31 PM
Data>Validation>List - Unique Entries =?Utf-8?B?UmFzaGVlZCBBaG1lZA==?= Microsoft Excel New Users 2 10th Aug 2006 11:54 AM
Need UNIQUE values for Data Validation List jg Microsoft Excel Programming 6 12th Apr 2006 10:42 PM
Unique numbers from data validation list nick_thomson Microsoft Excel Worksheet Functions 4 4th Apr 2006 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 AM.