Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why does data validation not work when pasting data into a cell. | Excel Discussion (Misc queries) | |||
Data Validation Error Does Not Work? | Excel Worksheet Functions | |||
Data validation does not seem to work with copy/paste | Excel Discussion (Misc queries) | |||
Data Validation does not work when selecting another cell. | Excel Discussion (Misc queries) | |||
Data Validation doesn't work on 1 sheet only | Excel Discussion (Misc queries) |