Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: How to add a condition to COUNTIFS formula to exclude certain numbers?
Thanks Thanks: 0 Likes Likes: 0

  1. #11
    Board Regular
    Join Date
    Apr 2018
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: How to add a condition to COUNTIFS formula to exclude certain numbers?

    Ah, oops, thanks!

  2. #12
    Board Regular
    Join Date
    Apr 2018
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: How to add a condition to COUNTIFS formula to exclude certain numbers?

    So, now I'm trying to take the average of the numbers in the same setup, and I tried adapting your formula to the AVERAGEIFS function, but I'm getting the #VALUE ! error again which says "A value used in the formula is of the wrong data type":

    =AVERAGEIFS(Scores!$B$2:$I$5,Scores!$B2:$I2,"<70",INDEX(Calendar!$B$2:$I$5,MATCH(Scores!$A2,Calendar!$A$2:$A$5,0),0),"<>x")

    I'm suspecting that the issue is caused by the initial range of the function "
    Scores!$B$2:$I$5"
    perhaps?

    Thanks a lot!

  3. #13
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,050
    Post Thanks / Like
    Mentioned
    467 Post(s)
    Tagged
    47 Thread(s)

    Default Re: How to add a condition to COUNTIFS formula to exclude certain numbers?

    Shouldn't that be
    AVERAGEIFS(Scores!$B2:$I2,Scores!$B2:$I2
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  4. #14
    Board Regular
    Join Date
    Apr 2018
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: How to add a condition to COUNTIFS formula to exclude certain numbers?

    Ah I see! I don't know why I was thinking the initial range refers to the entire range the formula will scan, so I was including the lower rows too.

    That's it for now until I encounter other conditions

    Thanks a lot!!!

  5. #15
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,050
    Post Thanks / Like
    Mentioned
    467 Post(s)
    Tagged
    47 Thread(s)

    Default Re: How to add a condition to COUNTIFS formula to exclude certain numbers?

    You're welcome & thanks for the feedback
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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