Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Data validation don't work

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 772
Default Data validation don't work

If you are counting uniques then they will all be less than 2 think you need 1
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Mary" wrote:

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Data validation don't work

Data Validation==Custom== =COUNTIF(D:D,D1)<2 worked OK for me.


"Mary" wrote:

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 772
Default Data validation don't work

Sorry didn't get a good look at that, all you are doing with your formula is
counting how many times the value in D1 appears in column D, and then asking
if it is less than 2. What are you doing next? What are you trying to get in
the end?
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Mary" wrote:

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Data validation don't work

I tried again with a new worksheet and it worked fine but still doesn't work
on the first one. I cleared all and I did it again. I don't know what is
wrong?

"Mary" wrote:

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Data validation don't work

Maybe your numbers are text?

Format all to General.

Copy a blank cell.

Select your data range and EditPaste Special(in place)AddOKEsc.

Does the CF work now?


Gord Dibben MS Excel MVP

On Thu, 15 Mar 2007 11:39:21 -0700, Mary wrote:

I tried again with a new worksheet and it worked fine but still doesn't work
on the first one. I cleared all and I did it again. I don't know what is
wrong?

"Mary" wrote:

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 190
Default Data validation don't work

No, it does not work and I don't know what is wrong. I set CF and it allows
me to type the same value 3 times and the fourth time I got the restricted
message.

"Gord Dibben" wrote:

Maybe your numbers are text?

Format all to General.

Copy a blank cell.

Select your data range and EditPaste Special(in place)AddOKEsc.

Does the CF work now?


Gord Dibben MS Excel MVP

On Thu, 15 Mar 2007 11:39:21 -0700, Mary wrote:

I tried again with a new worksheet and it worked fine but still doesn't work
on the first one. I cleared all and I did it again. I don't know what is
wrong?

"Mary" wrote:

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Data validation don't work

Sorry

I used the term CF not DV which is what you are trying to use.

Did you see the couple other replies you got?

Toppers stated that your formula worked for him.

Works for me.

I select all of column D and DataValidationAllowCustom

=COUNTIF(D:D,D1)<2 and OK out.

Type qwerty in D1

Type qwerty in D2 and get the "restricted" message.


Gord



On Fri, 16 Mar 2007 11:58:00 -0700, Mary wrote:

No, it does not work and I don't know what is wrong. I set CF and it allows
me to type the same value 3 times and the fourth time I got the restricted
message.

"Gord Dibben" wrote:

Maybe your numbers are text?

Format all to General.

Copy a blank cell.

Select your data range and EditPaste Special(in place)AddOKEsc.

Does the CF work now?


Gord Dibben MS Excel MVP

On Thu, 15 Mar 2007 11:39:21 -0700, Mary wrote:

I tried again with a new worksheet and it worked fine but still doesn't work
on the first one. I cleared all and I did it again. I don't know what is
wrong?

"Mary" wrote:

Hi,
I am trying to set up column D as unique but everytime that I type the below
formula doesn't work. If I enter the same value twice it takes.
=COUNTIF(D:D,D1)<2




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
Why does data validation not work when pasting data into a cell. rjshelby Excel Discussion (Misc queries) 1 July 31st 06 09:08 PM
Data Validation Error Does Not Work? Alex Mackenzie Excel Worksheet Functions 3 March 6th 06 02:35 PM
Data validation does not seem to work with copy/paste LAF Excel Discussion (Misc queries) 1 September 15th 05 09:31 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 doesn't work on 1 sheet only lunker55 Excel Discussion (Misc queries) 4 February 25th 05 05:25 PM


All times are GMT +1. The time now is 02:13 AM.

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"