+ Reply to Thread
Results 1 to 4 of 4

Nesting countif?

  1. #1
    Registered User
    Join Date
    08-17-2008
    Location
    Worthing, Sussex, UK.
    Posts
    46

    Nesting countif?

    Hi all.

    First time posting here so be gentle! I have a new job a part of which is where I have to provide reports using data from excel 2003 sheets that are sent to me by someone else. I add my own formulas to get the data I need. One such bit of data is...

    How many rows have "yes" in col E and "w" in range M:V?

    Please Login or Register  to view this content.
    I can do countif's for each individual query, ie
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    but how to pair the two together?

    I have googled "nesting countif" and searched here, but I haven't understood the answers I have found. Doh!

    I am a newbie to Excel and I did an internal 'basic' course last week. Can anyone help in plain English before I go back to work tommorrow please?

    Many thanks.
    Last edited by Simon Lloyd; 10-03-2008 at 06:39 AM.

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    I suppose you basically want to say COUNTIF( col E=Y AND col M:V="W") .

    In that case
    =SUMPRODUCT((E2:E9="Y")*(M2:V9="W"))
    It summerizes the number of rows that fullfill the criteria.

    HTH
    Ola

  3. #3
    Registered User
    Join Date
    08-17-2008
    Location
    Worthing, Sussex, UK.
    Posts
    46
    Quote Originally Posted by olasa
    I suppose you basically want to say COUNTIF( col E=Y AND col M:V="W") .

    In that case
    =SUMPRODUCT((E2:E9="Y")*(M2:V9="W"))
    It summerizes the number of rows that fullfill the criteria.

    HTH
    Ola
    "Multiplies corresponding components in the given arrays, and returns the sum of those products.

    SUMPRODUCT(array1,array2,array3, ...)"

    Thanks, that does work well. I just wish I **understood** how it works. Lets see... BODMAS.

    (E2:E9="Y")

    "SUMPRODUCT treats array entries that are not numeric as if they were zeros."

    (E2:E9=0) = true (I assume)

    (M2:V9="W") = true

    true * true? How can true be multiplied by true? I just do not understand this function. Oh well, off to Google! And thanks for your help. Attached is one sheet of the (sanatised) real data. I add columns M> ans rows 404> after I recieve the data.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    In Excel, True = 1 and False = 0.
    That's why it works.
    //Ola

+ 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