+ Reply to Thread
Results 1 to 3 of 3

Thread: COUNTIF Problems

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    Northridge, CA
    MS-Off Ver
    Excel 2007
    Posts
    10

    COUNTIF Problems

    Hi. I hope someone can help. I am trying to apply conditional formatting to the range A2:A1000 to compare account numbers in two columns. When the numbers are in column A2:A1000 but not in column D2:E1000, I want those numbers to be highlighted. Please see my formula:

    =COUNTIF(D2:E1000,A2)=0

    For some reason it seems to be working with exception of 2 cells. Cell A6 also appears in D3 and cell A24 also appears in D10 but they are still highlighting. Those should not highlight because they are in both lists. I spot checked the lists and those are the only two cells it appears to be happening on. Any ideas?
    Last edited by aaron1976; 01-27-2012 at 07:05 AM.

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,771

    Re: COUNTIF Problems

    try absolute refernce or the range will adjust when copied =COUNTIF($D$2:$E$1000,A2)=0
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-12-2012
    Location
    Northridge, CA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: COUNTIF Problems

    Quote Originally Posted by martindwilson View Post
    try absolute refernce or the range will adjust when copied =COUNTIF($D$2:$E$1000,A2)=0
    AWESOME!! Thanks, that fixed it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0