+ Reply to Thread
Results 1 to 6 of 6

COUNTIF mulitple Not Equal To

  1. #1
    Registered User
    Join Date
    11-02-2011
    Location
    Peoria, IL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up COUNTIF mulitple Not Equal To

    i have a column with Vendor names. i used COUNTIF to figure out how many IBM or Dell occurrances. so

    =COUNTIF(a1:a30,"<>IBM*")

    this works when i'm only counting 1 vendor name

    but i have a few cells that have other info in them such as "waiting on vendor name" or perhaps they are blank. so i need a count of cell contents that DON'T contain IBM, HP, or Dell for example. i've tried entering

    =COUNTIF(a1:a30,"<>IBM*","<>HP*","<>Dell")

    but i get an error that i've entered too many arguments. anyone know how to get a return on cells that contain anything other than my main vendor names? blanks included.

    appreciate the help in advance!
    Last edited by denacho; 11-02-2011 at 03:43 PM.

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

    Re: COUNTIF mulitple Not Equal To

    This version will count all those that do contain one of the vendor names

    =SUM(COUNTIF(A1:A30,{"IBM*","Dell*","HP*"}))

    so for the figure you want subtract that from the total number of cells in the range

    =ROWS(A1:A30)-SUM(COUNTIF(A1:A30,{"IBM*","Dell*","HP*"}))
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-02-2011
    Location
    Peoria, IL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: COUNTIF mulitple Not Equal To

    thanks so much! that was it!

  4. #4
    Registered User
    Join Date
    11-02-2011
    Location
    Peoria, IL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: COUNTIF mulitple Not Equal To

    and i would mark this Solved, but i cannot figure out how!

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: COUNTIF mulitple Not Equal To

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save
    HTH
    Regards, Jeff

  6. #6
    Registered User
    Join Date
    11-02-2011
    Location
    Peoria, IL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: COUNTIF mulitple Not Equal To

    thanks Jeff. i was looking around & it was in front of me the whole time. sorry for the newbness!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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