If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-10, 23:46
RBSAI RBSAI is offline
Registered User
 
Join Date: Nov 2009
Posts: 8
Excel help

Hi experts

i need a small help or guidance

in excel , i want the system to restrict duplicate entry for a column

if suppose , if i try to enter value 100 anywhere in column a for the second time, it should the accept the same value for the 2nd time and and intimate the no already exists and try a new one

is it possible, if it so , kindly guide me how to do that

a little urgent pls

regards

r sudhaakar
Reply With Quote
  #2 (permalink)  
Old 12-29-10, 05:35
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,

Yes, it is possible using data validation. Here is an example in Excel 2003.
  • Select the whole of column F.
  • Data > Validation > Settings Tab
  • In the 'Allow' Dropdown box choose 'Custom'
  • In the 'Formula' box type in =COUNTIF($F:$F,$F1)<=1
  • On the Error Alert tab type in your customised message
  • OK
Now duplicate entries will not be allowed within column F.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 02-23-11, 07:49
seoservice seoservice is offline
Registered User
 
Join Date: Feb 2011
Location: Miami, Florida
Posts: 10
Yes, with the help of Data Validation in Excel you can create a validation for an alert of having duplicates...

Data validation is a tool that helps you control the kind of information that is entered in your worksheet. With data validation, you can:

--provide users with a list of choices
--restrict entries to a specific type or size
--create custom settings

You can use Data Validation to create a dropdown list of options in a cell. List items can be typed in a row or column on a worksheet, or typed directly into the Data Validation dialog box. Then follow the steps for creating validation..
1. In single row or column, type the entries you want to see in the drop-down list. (Note: The list must be in a single block of cells )
2. Name the List Range
3. Apply the Data Validation by Selecting the cells in which you want to apply data validation.Then from the Data menu, choose Validation. From the Allow drop-down list, choose List. In the Source box, type an equal sign and the list name. Now click OK


You can also Use a Delimited List:- Instead of referring to a list of items on the worksheet, you can type the list in the Source box, separated by commas.

If you want to allow users to type items that are not in the list., turn off the Error Alert.


Hope now you finally understand the way for validating cells.

Thanks & regards
Manish
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On