+ Reply to Thread
Results 1 to 4 of 4

Thread: countif multiple criteria.

  1. #1
    Registered User
    Join Date
    10-09-2008
    Location
    KC
    Posts
    3

    countif multiple criteria.

    I'm trying to count multiple criteria from a second page in a work book, all the formulas i've looked up and tried do not seem to work... here's the formulas i've tried..

    DKOBULAR is the name of the 2nd page...
    D is the column used for the different resolves.

    =COUNTIF(DKOBULAR!D:D="resolveA")+COUNTIF(DKOBULAR!D:D="resolveB")+COUNTIF(DKOBULAR!D:D="resolveC")+ COUNTIF(DKOBULAR!D:D="resolveD")

    =COUNT(IF(DKOBULAR!D:D="resolveA",IF(DKOBULAR!D:D="resolveB",IF(DKOBULAR!D:D="resolveC",IF(DKOBULAR! D:D="resolveD")))))

    What am I doing wrong?
    Last edited by mrdisposal; 10-09-2008 at 06:39 PM.

  2. #2
    Registered User
    Join Date
    10-09-2008
    Location
    KC
    Posts
    3
    looking through this site, it appears i might need to use the
    =SUMPRODUCT function, but i'm having difficulty using the examples i've found to write the formula for what i need...

  3. #3
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,057
    You need a comma instead of = inside COUNTIF, i.e.

    =COUNTIF(DKOBULAR!D:D,"resolveA")+COUNTIF(DKOBULAR!D:D,"resolveB")+COUNTIF(DKOBULAR!D:D,"resolveC")+ COUNTIF(DKOBULAR!D:D,"resolveD")

    although you could shorten to

    =SUM(COUNTIF(DKOBULAR!D:D,{"resolveA","resolveB","resolveC","resolveD"}))

    or, if you need to count all resolves you might be able to use a "wildcard", i.e.

    =COUNTIF(DKOBULAR!D:D,"resolve?")

  4. #4
    Registered User
    Join Date
    10-09-2008
    Location
    KC
    Posts
    3
    odd... the first formula you gave me worked, but the truncated version didn't count all the data... regardless of it being longer the first formula worked though, so thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Countif with multiple criteria:pull it off
    By InfinityUD in forum Excel General
    Replies: 3
    Last Post: 06-25-2008, 10:56 AM
  2. COUNTIF with Multiple Criteria
    By digitalzero in forum Excel Worksheet Functions
    Replies: 2
    Last Post: 11-07-2007, 04:57 PM
  3. Multiple Range and Multiple Criteria in a COUNTIF
    By KADean in forum Excel Worksheet Functions
    Replies: 4
    Last Post: 06-11-2007, 05:26 PM
  4. COUNTIF multiple range / multiple criteria
    By fantom013 in forum Excel Programming
    Replies: 2
    Last Post: 05-24-2007, 04:28 PM
  5. Countif or Sumif with multiple criteria
    By Eladamri in forum Excel Worksheet Functions
    Replies: 16
    Last Post: 12-22-2006, 06:45 AM

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.2.0