Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default identify duplicate data upon entry of that data

Is there a way to identify an entry as a duplicate in the same column. For
instance, if 4310011192 is already entered in the column and I enter it
again, an error will result, informing the user "Duplicate entry". I know you
can do this in ACCESS by virtue of the primary key, but don't know how to do
it in Excel.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default identify duplicate data upon entry of that data

Let's say your data in Column A
Select column A:A
Go to menu, Data Data Validation under Allow: select Custom under
Formula: =COUNTIF(A:A,A1)=1



"Jan Buckley" wrote:

Is there a way to identify an entry as a duplicate in the same column. For
instance, if 4310011192 is already entered in the column and I enter it
again, an error will result, informing the user "Duplicate entry". I know you
can do this in ACCESS by virtue of the primary key, but don't know how to do
it in Excel.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default identify duplicate data upon entry of that data

One way via data validation
Assuming data will only be entered manually* down col A ..
*as any copy-pasting, or dragging down a cell with input in it will override
the validation

Select col A (click on the col header "A")
Click Data Validation
Allow: Custom
Formula: =COUNTIF($A:$A,A1)<2
Click OK

Test it out ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jan Buckley" wrote:
Is there a way to identify an entry as a duplicate in the same column. For
instance, if 4310011192 is already entered in the column and I enter it
again, an error will result, informing the user "Duplicate entry". I know you
can do this in ACCESS by virtue of the primary key, but don't know how to do
it in Excel.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default identify duplicate data upon entry of that data

I don't want to have to filter to find the dupes. I want them identified upon
entry.

"Teethless mama" wrote:

Let's say your data in Column A
Select column A:A
Go to menu, Data Data Validation under Allow: select Custom under
Formula: =COUNTIF(A:A,A1)=1



"Jan Buckley" wrote:

Is there a way to identify an entry as a duplicate in the same column. For
instance, if 4310011192 is already entered in the column and I enter it
again, an error will result, informing the user "Duplicate entry". I know you
can do this in ACCESS by virtue of the primary key, but don't know how to do
it in Excel.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default identify duplicate data upon entry of that data

Max, thanks so much! Works like a charm.

"Max" wrote:

One way via data validation
Assuming data will only be entered manually* down col A ..
*as any copy-pasting, or dragging down a cell with input in it will override
the validation

Select col A (click on the col header "A")
Click Data Validation
Allow: Custom
Formula: =COUNTIF($A:$A,A1)<2
Click OK

Test it out ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jan Buckley" wrote:
Is there a way to identify an entry as a duplicate in the same column. For
instance, if 4310011192 is already entered in the column and I enter it
again, an error will result, informing the user "Duplicate entry". I know you
can do this in ACCESS by virtue of the primary key, but don't know how to do
it in Excel.



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default identify duplicate data upon entry of that data

Delighted, Jan !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jan Buckley" wrote in message
...
Max, thanks so much! Works like a charm.



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
sorting 2 colums of numbers and incremening them down blk&wht Excel Discussion (Misc queries) 10 October 9th 06 10:12 PM
Data entry too slow even with calc set to manual [email protected] Excel Discussion (Misc queries) 1 September 22nd 06 11:00 AM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 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 05:28 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"