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!

    Hi,

    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
    Location
    Nanaimo, BC, Canada
    Posts
    2,195
    Articles
    57
    Blog Entries
    14
    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 (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/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
  •