+ Reply to Thread
Results 1 to 6 of 6

COUNTIFS with 3 sets of criteria.

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    12

    COUNTIFS with 3 sets of criteria.

    Hullo again!

    I'm attempting to write a formula that counts how many entries are in a given worksheet based upon three (3) different sets of criteria. I'm attaching a sample workbook.

    To sum it up, in the Util Flakes worksheet, I need to count how many cells have data based on:
    Criteria 1: Count the data in Util Flakes only if the data in cell $A6 in Lithics Analysis equals the data in column I in Util Flakes (e.g., Gray Chert, Gray Chert)
    Criteria 2: Count criteria 1 ONLY if the data in the Util Flakes equals "Y" in Column T
    Criteria 3: Count criteria 1 & 2 ONLY if the criteria in column J (Util Flakes) ='Y"

    I've tried using COUNTIFS, multiple IF statements, and did much internet browsing with no understanding of how to accomplish this.

    Any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: COUNTIFS with 3 sets of criteria.

    This worked for me?

    =COUNTIFS('Util Flakes'!$I:$I,'Lithics Analysis'!$A6,'Util Flakes'!$T:$T,"Y",'Util Flakes'!$J:$J,"Y") (gives 4)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    12

    Re: COUNTIFS with 3 sets of criteria.

    Thank you Ford (again)!

    I guess I was 'there' but couldn't figure out why I kept getting a value error.
    If I was to add a fourth criteria to this statement would I follow the same format?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: COUNTIFS with 3 sets of criteria.

    Try this .... untested

    =COUNTIFS(I:I,'Lithics Analysis'!A6,T:T,"Y",J:J,"Y") in sheet Util Flakes (not sure which column but tested in in AD with result of 4.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: COUNTIFS with 3 sets of criteria.

    ... yes ,... just keep adding criteria as required.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: COUNTIFS with 3 sets of criteria.

    Correct. COUNTIFS() syntax is...
    =COUNTIFS(criteria-range1,criteria1,criteria-range2,criteria2,criteria-range3,criteria3,..............................)

+ 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. 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
  2. [SOLVED] Countifs with Boolean Values given by sets of conditions
    By NunoE in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-05-2014, 09:14 AM
  3. #DIV!/0 error when using two sets of countifs
    By guerinto in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2014, 04:50 PM
  4. [SOLVED] Countifs with multiple criteria and one criteria has a list of names
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 05:25 PM
  5. Replies: 2
    Last Post: 11-06-2012, 06:40 PM

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