Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
jk jk is offline
external usenet poster
 
Posts: 109
Default Data Validation skips rows

I am using data validation to prevent duplicates in a column and the
validation i am using is =COUNTIF(A:A,A1)<2 .This works on some sheets but on
others, it skips every other two rows. What would cause this?


  #2   Report Post  
Posted to microsoft.public.excel.setup
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Data Validation skips rows

"jk" wrote:
I am using data validation to prevent duplicates in a column and the
validation i am using is =COUNTIF(A:A,A1)<2 .This works on some sheets but on
others, it skips every other two rows. What would cause this?


Assuming the validation is applied correctly .. not sure, perhaps data entry
consistency? Eg: some text entries may contain "invisible" extraneous
whitespaces (leading, in-between, trailing) leading to non trigger of the
data validation for what looks to be duplicates

Try instead the validation formula:
=SUMPRODUCT((TRIM($A$1:$A$1000)=TRIM(A1))*(TRIM($A $1:$A$1000)<""))<2
which allows use of TRIM, unlike COUNTIF

For calc efficiency, use the smallest range sufficient
to cover the max expected data entry extent in col A
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
Dynamic Range, Data Validation and Address, Match and Offset Funct rudawg Excel Worksheet Functions 3 January 29th 06 03:19 AM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Inserting rows with Data, Formula's and Validation Doug Manning Excel Discussion (Misc queries) 0 September 17th 05 12:26 AM
DATA VALIDATION IN REVERSE #2 (FOR JULIE D.) Wayne Excel Discussion (Misc queries) 0 March 22nd 05 06:24 AM


All times are GMT +1. The time now is 09:24 AM.

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"