#1   Report Post  
Posted to microsoft.public.excel.misc
KKD KKD is offline
external usenet poster
 
Posts: 31
Default Duplicates

Is there a way to be flagged when adding a duplicate record. My spreadsheet
is set up with records in rows...I want to know when I am entering a
duplicate invoice number, which is a value stored in a single column of the
row. I want to be allowed to enter duplicates, I just need to know that it IS
a duplicate. Any suggestions?
--
KKD
  #2   Report Post  
Posted to microsoft.public.excel.misc
KKD KKD is offline
external usenet poster
 
Posts: 31
Default Duplicates

Got it, thanks!
--
KKD


"KKD" wrote:

Is there a way to be flagged when adding a duplicate record. My spreadsheet
is set up with records in rows...I want to know when I am entering a
duplicate invoice number, which is a value stored in a single column of the
row. I want to be allowed to enter duplicates, I just need to know that it IS
a duplicate. Any suggestions?
--
KKD

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Duplicates

One way. Right click sheet tabinsert thischange column 1 to suit yours

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column < 1 Then Exit Sub
lr = Cells(Rows.Count, 1).End(xlUp).Row
If Application.CountIf(Range(Cells(1, 1), _
Cells(lr, 1)), Target) 1 Then MsgBox "Dup"
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"KKD" wrote in message
...
Is there a way to be flagged when adding a duplicate record. My
spreadsheet
is set up with records in rows...I want to know when I am entering a
duplicate invoice number, which is a value stored in a single column of
the
row. I want to be allowed to enter duplicates, I just need to know that it
IS
a duplicate. Any suggestions?
--
KKD


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
Looking up duplicates Mandy Excel Discussion (Misc queries) 8 November 22nd 08 05:49 AM
Condensing a list with duplicates to a list with non-duplicates Nuclear Excel Worksheet Functions 2 July 29th 08 08:03 PM
Duplicates wynand Excel Discussion (Misc queries) 2 May 22nd 08 01:24 PM
Duplicates in excel that aren't 100% DUPLICATES ... [email protected] Excel Discussion (Misc queries) 4 May 2nd 08 06:43 PM
Duplicates help Matt Excel Discussion (Misc queries) 0 September 14th 07 02:00 PM


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