+ Reply to Thread
Results 1 to 6 of 6

Countifs: Multiple Criteria in Same Range with Other Criteria

  1. #1
    Registered User
    Join Date
    08-14-2019
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    3

    Countifs: Multiple Criteria in Same Range with Other Criteria

    Is there a way to count multiple criteria in the same range in a countifs function even though there are other criteria that needs to be considered.

    Below is what I came up with but I need to add Math1, Science1, History1, and English2 [edited as first sample was too easy to solve/sample excel file will have other subjects in it. Sorry ] in the 5th criteria. (Note: Not the actual data as it is confidential but is very similar.)


    =COUNTIFS(Raw!A:A,"Jul",Raw!F:F,"Yes",Raw!B:B,"No",Raw!C:C,"Teacher",Raw!D:D,"English1",Raw!E:E,"Teacher A")


    Basically, I need it to count all English1, English2, English3, English4, and English5 in the same column but still consider all the other variables in the existing formula.

    I was thinking nested formula but I can't figure out what function I should use and how to execute it. I also tried this

    =COUNTIFS(Raw!A:A,"Jul",Raw!F:F,"Yes",Raw!B:B,"No",Raw!C:C,"Teacher",Raw!D:D,"English1",Raw!E:E,"Teacher A")+COUNTIFS(Raw!A:A,"Jul",Raw!F:F,"Yes",Raw!B:B,"No",Raw!C:C,"Teacher",Raw!D:D,"English2",Raw!E:E,"Teacher A")+COUNTIFS(Raw!A:A,"Jul",Raw!F:F,"Yes",Raw!B:B,"No",Raw!C:C,"Teacher",Raw!D:D,"English3",Raw!E:E,"Teacher A")+COUNTIFS(Raw!A:A,"Jul",Raw!F:F,"Yes",Raw!B:B,"No",Raw!C:C,"Teacher",Raw!D:D,"English4",Raw!E:E,"Teacher A")+COUNTIFS(Raw!A:A,"Jul",Raw!F:F,"Yes",Raw!B:B,"No",Raw!C:C,"Teacher",Raw!D:D,"English5",Raw!E:E,"Teacher A")

    but this is too long and would take a lot of time since my data contains numerous teachers, subjects and numerous raw data file entry. Can someone help me with this?
    Attached Files Attached Files
    Last edited by ejpal; 08-14-2019 at 06:32 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Countifs: Multiple Criteria in Same Range with Other Criteria

    Just change the 5th criteria to

    "English*"
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-14-2019
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    3

    Re: Countifs: Multiple Criteria in Same Range with Other Criteria

    Ooops. I might have oversimplified my example. I have to edit that but I do wish it was that easy. lol.

    What if, let's say the criteria are English1, Math1, Science1, History1, and English2?

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Countifs: Multiple Criteria in Same Range with Other Criteria

    Use wildcard function. "B4"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Registered User
    Join Date
    08-14-2019
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    3

    Re: Countifs: Multiple Criteria in Same Range with Other Criteria

    Ooops. I might have oversimplified my example.

    What if, let's say the criteria are English1, Math1, Science1, History1, and English2?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Countifs: Multiple Criteria in Same Range with Other Criteria

    First of all your results table does not specify the subject. What are you actually trying to sum.

    As requested the formula in B4 is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Maybe a Pivot Table would be better - see attavhed
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] COUNTIFS with Multiple Text Criteria in Same Criteria Range
    By xl2016 in forum Excel General
    Replies: 5
    Last Post: 06-18-2017, 05:00 AM
  2. Countifs with multiple criteria in single criteria range
    By SUHAS KARHADKAR in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-01-2016, 10:55 AM
  3. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  4. Countifs with multiple criteria and data range
    By Pritirus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-21-2016, 01:18 PM
  5. [SOLVED] COUNTIFS with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2015, 01:04 PM
  6. COUNTIFS with Multiple Criteria in One Range
    By mphillips in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2013, 02:43 PM
  7. Countifs with multiple criteria in a single range
    By Wolfpackfan320 in forum Excel General
    Replies: 1
    Last Post: 02-27-2012, 04:54 PM

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