Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Freshman
 
Posts: n/a
Default Validation for a cell

Dear expert,

I want to set a cell (for example : A1) with validation so that the value in
it will not appear twice in a row, say A1:M1. My formula is:
=COUNTIF($A$1:$M$1,A1)<=1.
The above formula is working but I want the same validation also working for
Column A, say A1:A10. The PC blocks me and it states a cell cannot be set
more than one validation. Can this be done? If yes, what the formula will be?
Please advise.

Thanks in advance.
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Set the second range starting in cell A2.

Select A2:A10

Use this formula for this range:

=AND(A$1<A$2,COUNTIF(A$1:A$10,A2)<=1)

Biff

"Freshman" wrote in message
...
Dear expert,

I want to set a cell (for example : A1) with validation so that the value
in
it will not appear twice in a row, say A1:M1. My formula is:
=COUNTIF($A$1:$M$1,A1)<=1.
The above formula is working but I want the same validation also working
for
Column A, say A1:A10. The PC blocks me and it states a cell cannot be set
more than one validation. Can this be done? If yes, what the formula will
be?
Please advise.

Thanks in advance.



  #3   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Select A1:M1, and enter the validation:

=(COUNTIF($A$1:$M$1,A1)+COUNTIF($A$2:$A$10,A1))<=1

Select A2:A10 and enter:

=(COUNTIF($A$1:$M$1,A2)+COUNTIF($A$2:$A$10,A2))<=1


Mangesh




"Freshman" wrote in message
...
Dear expert,

I want to set a cell (for example : A1) with validation so that the value

in
it will not appear twice in a row, say A1:M1. My formula is:
=COUNTIF($A$1:$M$1,A1)<=1.
The above formula is working but I want the same validation also working

for
Column A, say A1:A10. The PC blocks me and it states a cell cannot be set
more than one validation. Can this be done? If yes, what the formula will

be?
Please advise.

Thanks in advance.



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
List, Data Validation, unlocked cell, protected sheet..... Kane New Users to Excel 6 July 16th 12 09:11 AM
In Cell Validation List & Linked Cell VLOOKUP BEEZ Excel Discussion (Misc queries) 7 July 1st 07 07:17 PM
Data Validation does not work when selecting another cell. Simon Jefford Excel Discussion (Misc queries) 5 June 29th 05 11:10 PM
Data Validation / Cell Entry Steve Jones Excel Discussion (Misc queries) 4 March 23rd 05 03:23 PM
how to add two data validation lists to a single cell? Mike Peter Excel Worksheet Functions 1 December 8th 04 08:22 PM


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