+ Reply to Thread
Results 1 to 5 of 5

Count IF Multiple conditions

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    11

    Count IF Multiple conditions

    I understand that the COUNTIF Formula can only be used for one condition. On my current project, I have two criteria that need to be met. The H Column needs to have a non-blank value and The C Column needs to have SITE A.

    I have structured my formula like this:
    Please Login or Register  to view this content.
    However the formula just returns 400 everytime... what am I doing wrong? This is in Excel2003

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Count IF Multiple conditions

    =SUMPRODUCT((H8:H407>0)*(C8:C407="SITE A")) should do it in 2003 version.

    In later versions, you have the COUNTIFS function too! Time for an upgrade?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Count IF Multiple conditions

    Haha! I Wish! only the lucky ones get the 2007 license. I am the lowly Janitor, cleaning up messes others have left behind.

    Now this formula is returning all cells that have met the "SITE A" condition, but not that meet BOTH conditions.=\

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Count IF Multiple conditions

    Aha, perhaps by non-blank you really mean 'non-blank' and not '>0' (which I took from your formula)
    Try
    =SUMPRODUCT((H8:H407<>"")*(C8:C407="SITE A"))

    If this does not work, kindly upload a sample!

  5. #5
    Registered User
    Join Date
    08-16-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Count IF Multiple conditions

    Boom! That did it, I mean they are zeros, and its all numerical data, but for some reason it doesn't register as a real zero... I don't get it. HOWEVER YOU SIR, are awesome, Thank you very much :D

+ 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