+ Reply to Thread
Results 1 to 5 of 5

Count with two conditions

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Count with two conditions

    Please provide formula to count with two conditions and to return blank for #N/A. Please see attached document. Thank you.
    Attached Files Attached Files
    Last edited by jewellove; 04-11-2013 at 09:21 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Count with two conditions

    Try COUNTIS and COUNTIFS formula. Eventually wrap into IFERROR

  3. #3
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Count with two conditions

    I have edited the attachment. I tried countif and countifs and I didn't get the right answer. Probably, this is a combination of vlookup. Vlookup for the company and count the number of M (male)..
    Last edited by jewellove; 04-11-2013 at 09:57 AM.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Count with two conditions

    hey jewellove, maybe in F11:
    =IF(AND(A11<>A10;A11<>"");COUNTIF($A$11:$A$37;A11);"")

    and G11:
    =IF(AND(A11<>A10;A11<>"");COUNTIFS($A$11:$A$37;A11;$C$11:$C$37;"F");"")
    change "F" to "M" if you need

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Count with two conditions

    Yes!!! Thank you, Beni

+ 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