+ Reply to Thread
Results 1 to 5 of 5

Count the number of times multiple condition are met

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    perth, australia
    MS-Off Ver
    Excel 2011
    Posts
    22

    Count the number of times multiple condition are met

    Hi guys, new here but needing a little help. I'm compiling a spreadsheet with information from a local baseball league. I'm trying to create two columns which give the number of times the home and away teams have played at the venue. My spreadsheet looks as follows:

    Table.png

    What I would like is for column D to show how many times the home team has played at the given venue. Specifically in D10, how many times has team c played at venue y (2). D11=number of times team b has played at venue z (3).

    Any help would be greatly appreciated. I am at my wits end and have all but given up on ever figuring out a solution!

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Count the number of times multiple condition are met

    Try
    =countifs(A:A,A10,C:C,C10)

    Although, as your example is a picture I can't test this.
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    perth, australia
    MS-Off Ver
    Excel 2011
    Posts
    22

    Re: Count the number of times multiple condition are met

    Hey,
    Thanks for that. It almost works, except it doesn't account for the instance where team c played as the away team (i.e. when team c appear in column b. I've attached the workbook this time. Very grateful.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Count the number of times multiple condition are met

    Just add same equation for the away plays...
    =countifs(A:A,A10,C:C,C10)+countifs(B:B,A10,C:C,C10)

  5. #5
    Registered User
    Join Date
    04-25-2013
    Location
    perth, australia
    MS-Off Ver
    Excel 2011
    Posts
    22

    Re: Count the number of times multiple condition are met

    Cheers mate!! Work beautifully.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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