+ Reply to Thread
Results 1 to 2 of 2

COUNTIF for "not equal to" with multiple criteria

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    84

    Angry COUNTIF for "not equal to" with multiple criteria

    Hi all,

    I'm looking for some help on creating a "not equal" to COUNTIF or SUMPRODUCT that will go through a specific column (G) and will check all the cells for each abbreviation of the 50 states. If a cell does not equal one of the 50 abbreviations, it will be counted. This will be used in VBA.

    If I need to explain more, please let me know. Any help would be great.

    Thanks.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,726

    Re: COUNTIF for "not equal to" with multiple criteria

    Try listing the 50 abbreviations on the worksheet, e.g. in Z1:Z50 then use this formula to count cells in G2:G1000 that are not blank and not equal to any of the abbreviations

    =SUMPRODUCT(ISNA(MATCH(G2:G1000,Z1:Z50,0))*(G2:G1000<>""))
    Audere est facere

+ 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.6.0 RC 1