Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pg23673
 
Posts: n/a
Default need an error msge when I attempt to enter a duplicate value in a

I am entering unique serial no. in col A. Can I set up a rule which will not
allow a duplicate serial no. entry into another cell?
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

See

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

In article ,
"pg23673" wrote:

I am entering unique serial no. in col A. Can I set up a rule which will not
allow a duplicate serial no. entry into another cell?

  #3   Report Post  
bj
 
Posts: n/a
Default

Check out the validation in the Data section.
select the area of interest (A:A)
<data<validation<Settings<Custom
enter =countif(A:A,A1)=1

Set the error alert as you want it


"pg23673" wrote:

I am entering unique serial no. in col A. Can I set up a rule which will not
allow a duplicate serial no. entry into another cell?

  #4   Report Post  
Gary Brown
 
Posts: n/a
Default


If you put a Custom Data Validation as follows:-

=IF(MATCH(A1,A:A,0)<ROW(A1),FALSE,TRUE)

This assumes that you are putting the serial number in column A, adjust
accordingly if this is not the case


--
Gary Brown
------------------------------------------------------------------------
Gary Brown's Profile: http://www.excelforum.com/member.php...o&userid=17084
View this thread: http://www.excelforum.com/showthread...hreadid=378030

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

Chip Pearson has something that can help:
http://www.cpearson.com/excel/NoDupEntry.htm



pg23673 wrote:

I am entering unique serial no. in col A. Can I set up a rule which will not
allow a duplicate serial no. entry into another cell?


--

Dave Peterson


  #6   Report Post  
pg23673
 
Posts: n/a
Default

Thanks for the help guys.

"Gary Brown" wrote:


If you put a Custom Data Validation as follows:-

=IF(MATCH(A1,A:A,0)<ROW(A1),FALSE,TRUE)

This assumes that you are putting the serial number in column A, adjust
accordingly if this is not the case


--
Gary Brown
------------------------------------------------------------------------
Gary Brown's Profile: http://www.excelforum.com/member.php...o&userid=17084
View this thread: http://www.excelforum.com/showthread...hreadid=378030


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
enter data on 1 sheet and make it enter on next avail row on 2nd s Nadia Excel Discussion (Misc queries) 27 September 9th 05 03:39 PM
Make macro run when I hit the enter key Tommy Excel Discussion (Misc queries) 1 May 16th 05 12:53 AM
"Enter" in Macros Desperate Excel Discussion (Misc queries) 4 February 26th 05 03:43 AM
Enter last name, auto fill full name & address--HOW? ana maria Excel Discussion (Misc queries) 3 February 25th 05 08:28 PM
Hyperlink with Enter key CPA Jammer Excel Discussion (Misc queries) 0 December 22nd 04 03:53 PM


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