LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default duplicates in validation list combobox

Create a new list of values without duplicates

In B1 add =A1

In B2, add

=IF(ISERROR(MATCH(0,COUNTIF(B$1:B1,$A$1:$A$20&""), 0)),"",
INDEX(IF(ISBLANK($A$1:$A$20),"",$A$1:$A$20),MATCH( 0,COUNTIF(B$1:B1,$A$1:$A$20&""),0)))

which is an array formula, so commit with Ctrl-Shift-Enter.

Copy B2 down, and adjust the ranges to suit. Then use the new range in
Debra's technique.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"chelle" wrote in message
...
I was just looking here and this is a nice tutorial on how to do the
datavalidation.
http://www.contextures.com/xlDataVal11.html

My problem is that some values I have more than once.

I have noticed from he http://www.contextures.com/xlDataVal07.html
that you can use a COUNTIF to remove duplicates. This is great but it
doesnt seem to have the "in cell dropdown" option if you use custom
instead
of list.

Does anyone know an easy way to do this? I have been trying to figure it
out for weeks now!

I would even consider writing a script in VB to check for duplicates but I
would need some sort of 'walk through' in how to tie it to my validation
box.

Thank you for your help!



 
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 to use validation formulas in Combobox GlenC Excel Discussion (Misc queries) 1 September 21st 06 10:19 PM
Show do I share a dynamic list for data validation? KarenF Excel Discussion (Misc queries) 16 August 1st 06 10:51 PM
validation list Crispy Excel Worksheet Functions 1 April 9th 06 06:46 AM
Data Validation - Dropdown List Not Appearing MWS Excel Discussion (Misc queries) 2 April 25th 05 05:05 PM
list validation using list validation... Patrick G Excel Worksheet Functions 1 December 21st 04 12:37 AM


All times are GMT +1. The time now is 10:01 PM.

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

About Us

"It's about Microsoft Excel"