Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default how to avoide duplicate entries in to cell

How to avoide dulicate entries in a column while entering the data.
And how to fix the cell length to max of 10 characters length
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default how to avoide duplicate entries in to cell

Hi,

Are these conditions in the same range?

A. To prevent duplicate entry setup the following Data Validation:

1. Highlight the range, lets say A1:A100
2. Choose the command Data, Validation
3. Under Allow choose Custom
4. Enter the following formula in the Formulas box:
=COUNTIF(A$1:A$100,A1)=1

B. To limit the number of characters entered in a cell:

1. Highlight the range and choose Data, Validation
2. Choose Text length from the Allow drop down
3. Choose less than or equal to from the Data drop down
4. Enter 10 in the Maximum box

One thing to keep in mind - if the user copies and pastes data into the
range where the Data Validation is, it is wiped out and anything can be
entered.

to combine both in the same range
1. proceed as in the first example but use the following formula
=AND(COUNTIF(A$1:A$100,A4)=1,LEN(A4)<=10)


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Anand" wrote:

How to avoide dulicate entries in a column while entering the data.
And how to fix the cell length to max of 10 characters length

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default how to avoide duplicate entries in to cell

Try the below

From menu FormatConditional Formatting
Select the column say col I
Condition1
Formula Is:
=COUNTIF(I:I,I1)1
and select a color from Format button.

For restriction on length
menu DataValidation
Allow 'TextLength'
Data 'less than or equal to'
MAximum '10'

If this post helps click Yes
---------------
Jacob Skaria


"Anand" wrote:

How to avoide dulicate entries in a column while entering the data.
And how to fix the cell length to max of 10 characters length

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
Duplicate entries Radiorick Excel Worksheet Functions 5 March 23rd 19 11:39 AM
How to avoide data conversion when opening a text file? Vel Excel Discussion (Misc queries) 18 April 17th 08 03:57 PM
Duplicate entries Secret Squirrel Excel Discussion (Misc queries) 2 October 31st 06 11:03 AM
Duplicate Entries ConfusedNHouston Excel Discussion (Misc queries) 1 November 1st 05 12:50 PM
Finding duplicate cell entries in a column of data Ellie Excel Discussion (Misc queries) 1 July 28th 05 01:41 PM


All times are GMT +1. The time now is 11:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"