Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
waldo
 
Posts: n/a
Default How do I prevent duplication of numbers in a column

I am entering numbers in a column and it is important that I get alerted to
any duplication of a previous number. How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default How do I prevent duplication of numbers in a column

right click sheet tabview codeinsert thismodify for your columnSAVE

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column < 2 Then Exit Sub
If Application.CountIf(Columns(2), Target) 1 Then MsgBox "Dup"
End Sub


--
Don Guillett
SalesAid Software

"waldo" wrote in message
...
I am entering numbers in a column and it is important that I get alerted to
any duplication of a previous number. How do I do this?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default How do I prevent duplication of numbers in a column

Chip Pearson has instructions for using Data Validation to prevent
duplicate entries:

http://www.cpearson.com/excel/NoDupEntry.htm

waldo wrote:
I am entering numbers in a column and it is important that I get alerted to
any duplication of a previous number. How do I do this?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
Consecutive Numbers down a column not to Exceed 49 Nelson Excel Worksheet Functions 6 July 18th 05 09:32 PM
column filtering to match identical numbers sammc2 Excel Discussion (Misc queries) 1 July 14th 05 11:59 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
How do I prevent duplicate numbers from being entered in a column. Clearwater Tim Excel Discussion (Misc queries) 1 March 21st 05 09:35 PM


All times are GMT +1. The time now is 12:57 AM.

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"