Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default prevent duplicate in Data Validation

I have a book that contain two sheets (Costing & Accessories).
My Problem are
1.how to hide the duplicate data in Data Validation ?
In Costing sheet, in column B18:B31 use Data-Validation-List-Sourc
=AccCategory (range name for Accessories sheet column category)
Because Accessories sheet is a table data then may have a duplicat
data in Category field. How to hide the duplicate data and only sho
single data when in Data Validation ?

2. filter selection into another combobox
what I'm select in B18 then will filterlist into C18. e.g in B18 i
"Drawcord" then in C18 only show "Drawcord" data for user to select
When user select the data, all the other field like curr,qty,supplie
will get the data from the selected record of C18

Please advice and hel

Attachment filename: book3.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=40558
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default prevent duplicate in Data Validation

You can't hide duplicate values if they're in a table
used for data validation I'm afraid.

You need to use the advanced filter to extract unique
items to another area.
An alternative would be to use a scripting.dictionary and
load it with unique items. This works like a collection,
but it has an Exists property
If a key exists already the property is true. If its
false, then you can add it to the dictionary.

What you want can be done.
If you load a recordset with the data in memory. when you
select an item in the first dropdown (B18) use this value
as a filter for the recordset and drop the recordset into
as table on another sheet. you can create a new
dictionary for unique items, and then use a VLOOKUP for
the data.


HTh
Patrick Molloy
Microsoft Excel MVP




-----Original Message-----
I have a book that contain two sheets (Costing &

Accessories).
My Problem are
1.how to hide the duplicate data in Data Validation ?
In Costing sheet, in column B18:B31 use Data-Validation-
List-Source
=AccCategory (range name for Accessories sheet column

category).
Because Accessories sheet is a table data then may have

a duplicate
data in Category field. How to hide the duplicate data

and only show
single data when in Data Validation ?

2. filter selection into another combobox
what I'm select in B18 then will filterlist into C18.

e.g in B18 is
"Drawcord" then in C18 only show "Drawcord" data for

user to select.
When user select the data, all the other field like

curr,qty,supplier
will get the data from the selected record of C18

Please advice and help

Attachment filename:

book3.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=405585
---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default prevent duplicate in Data Validation

1. There's a sample file here that uses formulas to extract
unique items from a list:

http://www.contextures.com/excelfiles.html

Under Functions, look for 'Extract Items with Formulas'

2. There are instructions here for creating dependent data
validation lists:

http://www.contextures.com/xlDataVal02.html

wiwi < wrote:
I have a book that contain two sheets (Costing & Accessories).
My Problem are
1.how to hide the duplicate data in Data Validation ?
In Costing sheet, in column B18:B31 use Data-Validation-List-Source
=AccCategory (range name for Accessories sheet column category).
Because Accessories sheet is a table data then may have a duplicate
data in Category field. How to hide the duplicate data and only show
single data when in Data Validation ?

2. filter selection into another combobox
what I'm select in B18 then will filterlist into C18. e.g in B18 is
"Drawcord" then in C18 only show "Drawcord" data for user to select.
When user select the data, all the other field like curr,qty,supplier
will get the data from the selected record of C18



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I prevent duplicate entry of a sku in a data table? hscja Excel Worksheet Functions 1 December 15th 09 02:59 PM
Prevent duplicate data from being entered into the same column Char Excel Worksheet Functions 3 August 29th 07 03:28 PM
How to Prevent Duplicate Data from inputing using input application? Zigball Excel Worksheet Functions 8 October 16th 06 11:01 PM
How do I prevent duplicate data in Excel? PANKAJ KUMAR Excel Discussion (Misc queries) 3 October 19th 05 02:38 PM
Data validation to prevent duplicate entry. vishu Excel Discussion (Misc queries) 0 March 14th 05 11:33 AM


All times are GMT +1. The time now is 07:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"