Results 1 to 3 of 3

Thread: Help: COUNTIF on multiple conditions

  1. #1

    Help: COUNTIF on multiple conditions

    Register for a FREE account, and/
    or Log in to avoid these ads!


    First, sorry if I sound confusing.

    I have two columns, one constains names which contains duplicates, second column contains status names and they also contain duplicates. The task that I want to fulfill is to count the number of occurence on the name field and if second column meets certain status.

    I can only come up with this:

    =COUNTIF (D3: D100,"Nash")

    this counts the number of occurence "Nash" appears on column D. Now, how can I make change in a way that it checks the right column for status labels?

    COUNT D if contains "Nash" AND right column E = "Queu".

    please help.

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Nanaimo, BC, Canada
    Blog Entries
    Excel Version
    Excel Office 365 Insider
    Hi there, and welcome to the board!

    What version of Excel are you using? If you're in Excel 2007 or higher, you can use COUNTIFS to do multiple conditions.

    If you're in 2003 or lower, you'll need to reach to SUMPRODUCT to make it work. Bob Phillips has an excellent article on using SUMPRODUCT for this purpose.
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: -||- Blog: -||- Forums:
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Thanks Ken,

    Am using 2010 version and COUNTIFS works great.

    thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts