#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Data Validation

Hello,

I am trying to validate user entry in a cell that prohibits them from
entering the same number as any number in a range of cells. For example, I
want the entry in A1 to not equal A2,A3, or A4. I also do not want A2 to
equal A1,A3, or A4 and so on. When ion the data validation window I select
"not equal to" and then it won't let me enter a range of cells no matter how
many different ways I try. There has to be a way of doing this. Suggestions?
Thanks a lot.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Data Validation

First clear A1 thru A4

Then Click on A1 and:
Data Validation Settings Custom Formula

=COUNTIF($A$1:$A$4,A1)<2

Finally copy A1 to A2 thru A4
--
Gary''s Student - gsnu200810


"GLHEC-BLS" wrote:

Hello,

I am trying to validate user entry in a cell that prohibits them from
entering the same number as any number in a range of cells. For example, I
want the entry in A1 to not equal A2,A3, or A4. I also do not want A2 to
equal A1,A3, or A4 and so on. When ion the data validation window I select
"not equal to" and then it won't let me enter a range of cells no matter how
many different ways I try. There has to be a way of doing this. Suggestions?
Thanks a lot.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Data Validation

That's what I was looking for! Thanks for the quick response :)

"Gary''s Student" wrote:

First clear A1 thru A4

Then Click on A1 and:
Data Validation Settings Custom Formula

=COUNTIF($A$1:$A$4,A1)<2

Finally copy A1 to A2 thru A4
--
Gary''s Student - gsnu200810


"GLHEC-BLS" wrote:

Hello,

I am trying to validate user entry in a cell that prohibits them from
entering the same number as any number in a range of cells. For example, I
want the entry in A1 to not equal A2,A3, or A4. I also do not want A2 to
equal A1,A3, or A4 and so on. When ion the data validation window I select
"not equal to" and then it won't let me enter a range of cells no matter how
many different ways I try. There has to be a way of doing this. Suggestions?
Thanks a lot.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Data Validation

Actually I could not get that to work if the cells are empty before the user
inputs their numbers. Then if they try to go back and change a number to
another that is within the cell range, then they get the error. From first
time going through from top to bottom (A1-A4) they are still able to enter
the same number in each cell. Any other suggestions?

"Gary''s Student" wrote:

First clear A1 thru A4

Then Click on A1 and:
Data Validation Settings Custom Formula

=COUNTIF($A$1:$A$4,A1)<2

Finally copy A1 to A2 thru A4
--
Gary''s Student - gsnu200810


"GLHEC-BLS" wrote:

Hello,

I am trying to validate user entry in a cell that prohibits them from
entering the same number as any number in a range of cells. For example, I
want the entry in A1 to not equal A2,A3, or A4. I also do not want A2 to
equal A1,A3, or A4 and so on. When ion the data validation window I select
"not equal to" and then it won't let me enter a range of cells no matter how
many different ways I try. There has to be a way of doing this. Suggestions?
Thanks a lot.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Data Validation

Ahh, nevermind. I copy and pasted the cells which changed the range in the
data vallidation formula. I changed the range in the COUNTIF function to
remain constant for each cell with only the "criteria" segment of the COUNTIF
funtion changing to reflect the cell I was setting the data validation for.
Thanks!

"Gary''s Student" wrote:

First clear A1 thru A4

Then Click on A1 and:
Data Validation Settings Custom Formula

=COUNTIF($A$1:$A$4,A1)<2

Finally copy A1 to A2 thru A4
--
Gary''s Student - gsnu200810


"GLHEC-BLS" wrote:

Hello,

I am trying to validate user entry in a cell that prohibits them from
entering the same number as any number in a range of cells. For example, I
want the entry in A1 to not equal A2,A3, or A4. I also do not want A2 to
equal A1,A3, or A4 and so on. When ion the data validation window I select
"not equal to" and then it won't let me enter a range of cells no matter how
many different ways I try. There has to be a way of doing this. Suggestions?
Thanks a lot.

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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation Update Validation Selection PCreighton Excel Worksheet Functions 3 September 11th 07 03:32 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


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