Thanks Thanks:  0
Likes Likes:  0
Results 1 to 7 of 7

Thread: data validation help

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Jefferson City, Missouri
    Posts
    382
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I'm having trouble with my validation formula. I'm wanting to check for duplicate invoices and I am using this formula:
    =Countif($C$9,C9)=0
    I have a range of cells (C9:C38) that I copied this formula to. My problem is that the validation only gives the error message if the new invoice is the same as in C9, I can put the same invoice number in cells C10:C38 and no error message. What's wrong?

    Thanks,

    I appreciate the help from everyone at Mr. Excel.

    viper

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,645
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-01 04:31, viper wrote:
    I'm having trouble with my validation formula. I'm wanting to check for duplicate invoices and I am using this formula:
    =Countif($C$9,C9)=0
    I have a range of cells (C9:C38) that I copied this formula to. My problem is that the validation only gives the error message if the new invoice is the same as in C9, I can put the same invoice number in cells C10:C38 and no error message. What's wrong?

    Thanks,
    What do you have in C8?

  3. #3
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi viper

    Try changing the Range argument of the COUNTIF to:


    $C$9:$C$38

  4. #4
    Board Regular
    Join Date
    Feb 2002
    Location
    Jefferson City, Missouri
    Posts
    382
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Aladin in cell C8 I have the heading, and Dave I changed the formula to $C$9:$C$38 but now I get the error message in each cell. I've done this before I just can't remember how or the formula I used.
    I appreciate the help from everyone at Mr. Excel.

    viper

  5. #5
    MrExcel MVP Russell Hauf's Avatar
    Join Date
    Feb 2002
    Location
    Portland, OR Area - USA
    Posts
    1,607
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You want the COUNTIF to equal 1, not 0.

    Hope this helps!

    -Russell

  6. #6
    Board Regular
    Join Date
    Feb 2002
    Location
    Jefferson City, Missouri
    Posts
    382
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks to all,
    I worked it out and it seems to be working as I need.

    Thanks,
    I appreciate the help from everyone at Mr. Excel.

    viper

  7. #7
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,645
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-01 17:24, viper wrote:
    Aladin in cell C8 I have the heading, and Dave I changed the formula to $C$9:$C$38 but now I get the error message in each cell. I've done this before I just can't remember how or the formula I used.
    =COUNTIF($C$8:C8,C9)=0

    to be used in data validation that you set up in C9, which you copy/propagate down to relevant cells.

    Aladin

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •