+ Reply to Thread
Results 1 to 5 of 5

Countifs for multiple conditions

  1. #1
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    187

    Countifs for multiple conditions

    Hi all

    I have attached an excel sheet with two questions to set up a countifs formula for multiple conditions. I have tried to explain it fully in the attachment if anyone would be kind enough to look at it.

    Thanks
    Gemma
    Attached Files Attached Files
    Last edited by batjl9; 03-25-2011 at 04:41 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Countifs for multiple conditions

    Hello Gemma,

    try this formula in B3 copied down and across

    =IFERROR(SUM(COUNTIFS($AA$2:$AA$1002,$A3,$AB$2:$AB$1002,B$2,$AK$2:$AK$1002,{1,2,3,4}))/COUNTIFS($AA$2:$AA$1002,$A3,$AB$2:$AB$1002,B$2),"")

    formatted as percentage

    For P3 copied down you can use SUMIFS, i.e.

    =SUMIF(AA$2:AA$1002,I3,AO$2:AO$1002)

    see attached
    Attached Files Attached Files
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    06-28-2009
    Location
    newcastle, uk
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Countifs for multiple conditions

    Thank you so much. I have tried to work it out myself forthe last few hours, and within 15 minutes of posting here i get my answer.

    thanks again
    Gemma

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Countifs for multiple conditions

    Hi,

    Pivot Tables are the answer. Find two examples using your data. I'm not sure if they give exactly what you are asking but I think the could with a little trial and error.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Countifs for multiple conditions

    ...just in case you might be interested.....you could also use a slightly shorter formula for the first one, an "array formula" using AVERAGE function, i.e.

    =IFERROR(AVERAGE(IF(($AA$2:$AA$1002=$A3)*($AB$2:$AB$1002=B$2), IF(ISNUMBER(MATCH($AK$2:$AK$1002,{1,2,3,4},0)),1,0))),"")

    confirmed with CTRL+SHIFT+ENTER

+ 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