#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Duplicates

Is there a way that I could prevent DUPLICATES in a column in XL? Similar to
a Key in Access.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Duplicates

Yes!

But we need to know how the duplicates get into the column in the first
place.
Importing
Entering - this one is real easy with a worksheet change event
Formula
Code
???

--
steveB

Remove "AYN" from email to respond
"DamonG" wrote in message
...
Is there a way that I could prevent DUPLICATES in a column in XL? Similar
to
a "Key" in Access.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Duplicates

Use menu data validations
select "Custom" from [allow]
and type "=COUNTIF($A$1:$A$1500,A1)=1" in [Formula]

Assume your input will be in column A range A1:A1500.


"DamonG" wrote in message
...
Is there a way that I could prevent DUPLICATES in a column in XL? Similar
to
a "Key" in Access.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Duplicates

Steve:

I am entering them each day - just don't want to enter the same info twice

EG: BAL094123
EG: VIPH123900

So my date could vary!

Tks
Damon

"STEVE BELL" wrote:

Yes!

But we need to know how the duplicates get into the column in the first
place.
Importing
Entering - this one is real easy with a worksheet change event
Formula
Code
???

--
steveB

Remove "AYN" from email to respond
"DamonG" wrote in message
...
Is there a way that I could prevent DUPLICATES in a column in XL? Similar
to
a "Key" in Access.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Duplicates

Damon,

Refer to Daniel Chen's suggestion.

Using Data Validation is by far the easiest way to go.
And you can set it to give the user a message when the cell is
entered, and another message if they try to add a duplicate...
while preventing a duplicate from being entered.

--
steveB

Remove "AYN" from email to respond
"DamonG" wrote in message
...
Steve:

I am entering them each day - just don't want to enter the same info twice

EG: BAL094123
EG: VIPH123900

So my date could vary!

Tks
Damon

"STEVE BELL" wrote:

Yes!

But we need to know how the duplicates get into the column in the first
place.
Importing
Entering - this one is real easy with a worksheet change event
Formula
Code
???

--
steveB

Remove "AYN" from email to respond
"DamonG" wrote in message
...
Is there a way that I could prevent DUPLICATES in a column in XL?
Similar
to
a "Key" in Access.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Duplicates

Daniel:

Tks I will try it

Damon



"Daniel CHEN" wrote:

Use menu data validations
select "Custom" from [allow]
and type "=COUNTIF($A$1:$A$1500,A1)=1" in [Formula]

Assume your input will be in column A range A1:A1500.


"DamonG" wrote in message
...
Is there a way that I could prevent DUPLICATES in a column in XL? Similar
to
a "Key" in Access.




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
Do not allow duplicates txheart Excel Discussion (Misc queries) 3 September 15th 10 05:16 PM
Duplicates Dias[_2_] Excel Worksheet Functions 7 February 10th 09 01:45 AM
Condensing a list with duplicates to a list with non-duplicates Nuclear Excel Worksheet Functions 2 July 29th 08 08:03 PM
Duplicates in excel that aren't 100% DUPLICATES ... [email protected] Excel Discussion (Misc queries) 4 May 2nd 08 06:43 PM
Help with Duplicates rlee1999 Excel Worksheet Functions 3 September 19th 06 09:16 AM


All times are GMT +1. The time now is 03:39 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"