Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default I need till check for duplicate in a column.

Hello!

I have around 2000 articel nr. in a column (A) and add new sometimes.
Then I add new I wish to check so I dont get any duplicate.

Can I do that easy?

Thanks
LO in Sweden

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default I need till check for duplicate in a column.

Have a look he-

http://www.cpearson.com/excel/Duplicates.aspx

Mike

"LO in Sweden" wrote:

Hello!

I have around 2000 articel nr. in a column (A) and add new sometimes.
Then I add new I wish to check so I dont get any duplicate.

Can I do that easy?

Thanks
LO in Sweden

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default I need till check for duplicate in a column.

Sorry I may have misread you post.

If you want to prevent duplicates when you add new data then:-

Select your range from A1 down then

Data|Validation|Formula is

and paste this in

=COUNTIF($A$1:$A$1000,A1)=1

This will prevent the addition of duplicates in that range.

Mike

"LO in Sweden" wrote:

Hello!

I have around 2000 articel nr. in a column (A) and add new sometimes.
Then I add new I wish to check so I dont get any duplicate.

Can I do that easy?

Thanks
LO in Sweden

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default I need till check for duplicate in a column.

I have the same problem with duplicates. I tried out the formula below and
while it does work if you type the data in manually, I have found it does not
work if you copy and paste.

Is there any way to ensure that if a user decides to paste in a duplicate
record that this will be preveneted?

thanks,
George



"Mike H" wrote:

Sorry I may have misread you post.

If you want to prevent duplicates when you add new data then:-

Select your range from A1 down then

Data|Validation|Formula is

and paste this in

=COUNTIF($A$1:$A$1000,A1)=1

This will prevent the addition of duplicates in that range.

Mike

"LO in Sweden" wrote:

Hello!

I have around 2000 articel nr. in a column (A) and add new sometimes.
Then I add new I wish to check so I dont get any duplicate.

Can I do that easy?

Thanks
LO in Sweden

  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default I need till check for duplicate in a column.

It's a known fact that copy-paste or dragging down will defeat data
validation (DV).

If you're trying to prevent duplicate entries using DV, try Vasant's code
below, which will prevent duplicate entries -- including preventing
copy-paste or dragging which would defeat data validation -- for col A in a
sheet. Entries are assumed made progressively from row1 down.

To install the code, right-click on the worksheet tab, select View Code,
then copy and paste the code below into the white space on the right. Press
Alt+Q to return to Excel. Test it out ..

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
' Vasant Nanavati 2002
On Error GoTo ErrorHandler
If Not Intersect(Target, Columns(1)) Is Nothing Then
If Not Range(Cells(1, 1), Cells(Intersect _
(Target, Columns(1)).Row - 1, 1)).Find _
(Target.Value, LookIn:=xlValues, LookAt:= _
xlWhole) Is Nothing Then
MsgBox "Part no. already exists!"
Application.EnableEvents = False
With Intersect(Target, Columns(1))
.ClearContents
.Select
End With
End If
End If
ErrorHandler:
Application.EnableEvents = True
End Sub
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"George Zervakos" wrote:
I have the same problem with duplicates. I tried out the formula below and
while it does work if you type the data in manually, I have found it does not
work if you copy and paste.

Is there any way to ensure that if a user decides to paste in a duplicate
record that this will be preveneted?

thanks,
George




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default I need till check for duplicate in a column.

The former did not work for me :-(
... to star twith.

But now I know way

Every time a treed a formula with , (Comma) I had problem€¦
Now I use ; (semicolon) and everything thing works. :-)

Probably I dont use €śstandard€ť Regional and Language Options for Windows

Thankt for the formula.

LO in Sweden




"Mike H" skrev:

Have a look he-

http://www.cpearson.com/excel/Duplicates.aspx

Mike

"LO in Sweden" wrote:

Hello!

I have around 2000 articel nr. in a column (A) and add new sometimes.
Then I add new I wish to check so I dont get any duplicate.

Can I do that easy?

Thanks
LO in Sweden

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
check for duplicate numbers Ash Excel Worksheet Functions 13 October 31st 06 10:15 AM
duplicate check rufusf Excel Worksheet Functions 2 August 29th 06 04:30 PM
How can I check for a duplicate number in a column in Excel? kkinner Excel Discussion (Misc queries) 2 August 24th 06 03:44 PM
Check for duplicate data WBTKbeezy Excel Worksheet Functions 1 February 10th 06 03:20 AM
How can I check for duplicate $'s? MDG Excel Worksheet Functions 0 January 25th 06 10:01 PM


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